I have a small HAML paragraph with links like this:
%p
=link_to("My Disclosures", "#")
=link_to("Create Disclosure", "#")
=link_to("My Programs", "#")
=link_to("Log Out", "#")
What I want to do is to put a separator like this “|” between the links, but I am not sure how. I tried putting it next to the text inside the “” but it became part of the link text. When I tried putting the separators at the end of the line, it just didn’t show up.
Any idea how I can get the serperating character to render as just text after a link?
Thanks!
You can just write the string itself on its own line:
Alternatively, you can append it to your output string: