RE: How to render from with <%%>?

Joerg, I haven’t found a good way to do what you want. I think just
separate code blocks is the cleanest.

<%coll.each do |itm|%>
<%=itm.value%>
<%end%>

It’s ugly, but more readable (to a simpleton like me) than <% coll.each
{|itm| _erbout << itm.value } %>

Marcus

Hi –

On Wed, 31 May 2006, Marcus B. wrote:

Joerg, I haven’t found a good way to do what you want. I think just
separate code blocks is the cleanest.

<%coll.each do |itm|%>
<%=itm.value%>
<%end%>

It’s ugly, but more readable (to a simpleton like me) than <% coll.each
{|itm| _erbout << itm.value } %>

Of course it is, but Joerg specifically asked for a way to do this
without using <%= %>.

David

Hi –

or something like that, though that’s really what <%= %> is for :slight_smile:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


David A. Black ([email protected])