On May 21, 2:45 pm, Frederick Cheung <[email protected]> wrote: > On May 21, 4:22 pm, John shelfer <[email protected]> wrote: > > > On May 21, 5:13 am, Colin Law <[email protected]> wrote: > > > yes i added a resource and now router.rb look likes but same issue > > is still there > > > Check::Application.routes.draw do > > get "posts/index" > > resources :post > > resources should be plural, ie resources :posts Thank you very much.It worked.But now i got another error in following file ,it says
"undefined method `name' for #<Post id: nil, created_at: nil, updated_at: nil>" John -- 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.

