On 20 May 2010 23:37, Ravi Dtv <[email protected]> wrote:
>
>...
> Can you please solve this error for me
>
> undefined method `each' for 4:Fixnum

I am sure you can work it out for yourself.  Look at the line of code
that generates the error, presumably there is a call to 'each' there.
The error says that you are trying to call each for the value 4 (which
is of type Fixnum), presumably you expected it to be an Array.  If you
can't see the problem by code inspection use ruby-debug to break in
before that line and have a look at the variable you are calling each
on.

Colin

-- 
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.

Reply via email to