Displaying 1 result from an estimated 1 matches for "similariterators".
2006 Jan 28
2
Trying to understand the difference between similariterators
...me just this output #
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Pat Maddox
Sent: Friday, January 27, 2006 2:48 PM
To: rails@lists.rubyonrails.org
Subject: Re: [Rails] Trying to understand the difference between
similariterators
Well first of all, when you''re iterating through a block, you don''t need
to have an end. In fact it should give you some kind of error.
Secondly, <% just evals a statement, <%= renders the output. So your
loop should be:
<td><%= @student.addresses.each {|addres...