> amritpal p. wrote in post #995333: > > Awaiting your helpful reply!!
You've already got an answer - your '@book' method is undefined in the 'new' action of your controller. You need to define '@book' in 'new' before you can access it. When an object such as a variable is undefined, it will return nil which is what you're seeing. -- Posted via http://www.ruby-forum.com/. -- 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.