On Fri, Jul 3, 2009 at 11:16 PM, Matt Harrison<[email protected]> wrote:
> It's a routing problem. The form_for tries to generate a route relating > to the matches controller, but the route doesn't exist. Either you want > to add something like > > map.resources :matches > > to config/routes.rb, or manually add a route in that same file, pointing > to the controller/action you want. The resources mapping will generate a > whole load of routes for that controller that use the RESTful principles. > > You can add that above line and then run "rake routes" to list the > structure. The new routes generate buy the line will be shown and should > let you see what it does. Awesome. Thanks so much! I had created the other pages using the scaffolding (which explains those entries in the routes.rb) but not for this one (matches) which I manually started to make. Scaffolding is nice but learn so much more from these mistakes doing it yourself that you helped me with . Thanks again. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

