In Rails ERB, you can suppress newlines by adding a trailing hyphen to tags:
<% for @item in @items -%> <%= @item %>
For example:
{% for obj in list %} {{ obj|linebreaksbr|striptags }} {% endfor %}
Or this, which also strips whitespaces/tabs/etc, between HTML tags:
{{ spaceless }} {% for obj in list %} {{ obj }} {% endfor %} {{ endspaceless }}