On 29 February 2012 09:26, sachin kewale <sachinkew...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.