From: James Edward Gray II Date: 2005-09-11T07:05:11+09:00 Subject: Re: RCR to modify #puts and #print inside ERB On Sep 10, 2005, at 5:01 PM, Jay Levitt wrote: > Here's some code from the Agile Rails book that could look a lot > nicer if the "puts" metaphor were available: > > <% for product in @products -%> >

<%= h(product.title) %>

> <%= product.description %> > <%= fmt_dollars(product.price) %> > > <% end %> > > vs. > > <% for product in @products > puts "

", h(product.title), "

", > product.description, > '', fmt_dollars(product.price), > "" > end %> Have you considered using Rails's programatic Builder views? James Edward Gray II