Ruby on Rails Wednesday, February 29, 2012

On 29 February 2012 09:26, sachin kewale <sachinkewale@gmail.com> wrote:
> '@book_pages.current.
> previous' which is getting the value from controller.i debug and found that
> it getting value number single digit 6
> suppose .
>
> i think now you are clear what i am asking for.I just want to know the cause
> of this error
> undefined method `current' for 6:Fixnum

Yes, the error is (as has been said several times already) that
something you think should be an object with the method .current, is
actually a number "6"... look at where you populate @book_pages.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment