On Apr 7, 2012, at 11:36 AM, Paul Na wrote: > Hi all, > > I have setup a ROR environment on my server and once i generate a > controller with a few actions in it and put a basic message in each > action within the controller rb file also editing the views for these > actions all i get is the standard 404 not found. I can not understand > why this is. > > Any ideas >
Have you edited your routes.rb file to reflect this new controller? The default since quite a while now has been for there to *not* be a "catch-all" route that would attempt to handle anything that didn't have an explicit declaration. You may need to add a line like this: resources :modelname if you have all of the basic 7 REST routes covered, or another route that more explicitly lays out the controller methods you want to expose. Walter > Thanks > > -- > 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 [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. > -- 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.

