On Apr 26, 4:30 am, amrit pal pathak <amritpalpath...@gmail.com> wrote: > Afer removing that block(from index.html.erb) ,i can see localhost: > 3000/book ,but when i click on "New book" link it gave follwoing error > > NoMethodError in Book#new > > Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 > raised: > > undefined method `model_name' for NilClass:Class Should creation of model by "rails generate model book" will resolve this error??
-- 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.