Rails 3 doesn't come with a generic rout mapping for controllers.
The generator for models or scaffold will add the models as resources
routes, so it will be RESTfull by default.
It means that in any new rails 3 app, you will have to explicitly
change the routes.rb to add the routes that are not related to a REST
Isn't it great? I love rails 3.
Ugis Ozols wrote:
Here’s how your routes.rb file should like for that /pages/home route
to work: http://gist.github.com/316367
In rails 3 rule for catching non-rest routes is deprecated so it’s
commented out in routes.rb. You can read about it in Rails 3.0 Release
Notes - http://guides.rails.info/3_0_release_notes.html#action-dispatch
On Feb 26, 10:47 pm, John Wu <[email protected]>
I am new to Ruby on Rails and have rails3 installed.
After I type this on the command line
$rails g controller Pages home contact
then, I go tohttp://localhost:3000/pages/home
No route matches “/pages/contact”
How can I fix this problem?
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
To unsubscribe from this group, send email to
For more options, visit this group at