This project is archived and is in readonly mode.
Named routes generated without a method
-
Jacques Crocker
- Tag changed from 2.1, routing to 2.1, routing
Whenever I change my routes file, I also get the error "Only get, head, post, put, and delete requests are allowed.". Restarting the server fixes this.
This is happening in development mode using the latest Mongrel (1.1.5) and Rails (2.1.1). Able to easily reproduce on multiple machines, though I cant reproduce it in unit tests.
-
Marko Anastasov
I would get that error if I'd forget to write eg:
map.resources :users, :member => { :settings => :get }
for a named route
map.settings 'settings', :controller => 'users', :action => 'settings'
It is necessary to restart the server but I don't consider it a bug.
-
Pratik
- State changed from new to invalid
Please submit a failing test case if the issue is still there.
Thanks.