backlogs/redmine_backlogs — pull request #501 by drakontia (2012-04-28 20:09:06+00:00)
Title: Correct routings of new/edit/snapshot action on rb_releases

Hi,

map.resources create only GET request of new/edit action.
But, changing releases needs POST request.

And if we use :only parameter in map.resources, we must write actions with same :as parameter in one line.
that is, ":only => [:show, :edit, :destroy, :snapshot],"

You think I understand release_controller, don't you?

So, routing result after change is below.
```ruby
# rake routes RAILS_ENV=production | grep release
edit_rb_release GET /rb/release/:release_id/edit(.:format) {:controller=>"rb_releases", :action=>"edit"}
snapshot_rb_release GET /rb/release/:release_id/snapshot(.:format) {:controller=>"rb_releases", :action=>"snapshot"}
POST /rb/release/:release_id/edit(.:format) {:controller=>"rb_releases", :action=>"edit"}
rb_release GET /rb/release/:release_id(.:format) {:controller=>"rb_releases", :action=>"show"}
DELETE /rb/release/:release_id(.:format) {:controller=>"rb_releases", :action=>"destroy"}
new_rb_release POST /rb/release/:project_id/new(.:format) {:controller=>"rb_releases", :action=>"new"}
GET /rb/release/:project_id/new(.:format) {:controller=>"rb_releases", :action=>"new"}
rb_releases GET /rb/releases/:project_id(.:format) {:controller=>"rb_releases", :action=>"index"}
```