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?
As of right now (October 21, 2012), there’s no way to elegantly do this.
If it is possible when you read this, please do answer the question, and I’ll mark it as the answer.