Request fails after adding auto_actions_for
Reported by Matt Jones | August 30th, 2008 @ 12:32 AM
Following on from #251, there's another routing problem from the tutorial. If script/server is running when the auto_actions_for line is added to story_controller, it correctly generates the 'new story' link on the project page, but clicking on the link gives an error:
ActionController::MethodNotAllowed
Only get requests are allowed.
Framework trace: (NOTE: no application trace - this bombs in
route recognition)
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/recognition_optimisation.rb:65:in
recognize_path'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:384:in
recognize'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:148:in
handle_request'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in
dispatch'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in
synchronize'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in
dispatch'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in
dispatch_cgi'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in
dispatch'
...
Something is very wrong with the routing after the reload. Restarting the server, of course, fixes the problem.
--Matt
Comments and changes to this ticket
-
Tom Locke September 3rd, 2008 @ 03:12 PM
- State changed from new to open
-
Matt Jones September 6th, 2008 @ 09:08 AM
- Assigned user set to Matt Jones
- State changed from open to wontfix
Moving to "wontfix", as this is a symptom of the framework bug in #251. Adding auto_actions_for moves things around in ActionController::Routing::Routes.routes, which causes this bug.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 251 Routing(?) failure when removing auto_actions in development Attached is an initializer that will patch the routing co...