On Dec 10, 10:15 pm, PierreW <[email protected]> wrote: > > def test_helper > for i in 1..3 > render :partial => 'test' > end > end > > it displays in my page: > 1..3 > as if test_helper had returned the string "1..3".
Which is exactly what it returned - for x in y; end evaluates to y. You're rendering partials but then discarding the results. You need to be hanging onto the results of the renders and joining them together (and then return that) Fred > > Any idea what is wrong with this code? > > Thanks a lot! > Peter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

