It depends how you generate the controller. If you use a command like this:

rails g controller posts index show edit new update create destroy

It will indeed create a GET route for each action. Kind of annoying.

You can generate the restful controller and route declaration by using the 
following:

rails g resource post

But of course this will also attempt to create the migration and model 
files, which may not be desired. You can add the -s option to skip files 
that already exist.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/SSFIXYf9U94J.
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.

Reply via email to