:any option for rails 3 routes
Posted
by user357523
on Stack Overflow
See other posts from Stack Overflow
or by user357523
Published on 2010-06-08T16:23:33Z
Indexed on
2010/06/08
19:52 UTC
Read the original article
Hit count: 189
ruby-on-rails
|rails-3
In rails 2 you can use the :any option to define a custom route that responds to any request method e.g.
map.resources :items, :member => {:erase => :any}
rails 3 doesn't seem to support the :any option
resources :items do
get :erase, :on => :member # works
any :erase, :on => :member # doesn't work
end
does anyone know if this option has been removed or just renamed?
© Stack Overflow or respective owner