This is the code
.meta
= time_ago_in_words(discussion.created_at)
ago by
= discussion.user.username
|
= link_to "Edit", edit_discussion_path(discussion), class: "meta"
|
= link_to "Delete", discussion_path(discussion), method: :delete, confirm: "Are you sure?", class: "meta"
And this is the output:
<div class='meta'>
about 7 hours
ago by
foo
|
<a href="/discussions/2/edit" class="meta">Edit</a>
|
<a href="/discussions/2" class="meta" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Delete</a>
</div>
This makes the output have unbalanced space on either sides of the |
.
Is it possible to remove the whitespace between these statements, without adding a span
to everything, or just using erb
or string interpolation
?