This project is archived and is in readonly mode.
url_for not matching route
Reported by mikemaltese | March 27th, 2011 @ 09:36 PM
My routes.rb looks like this:
namespace :workflow do
resources :articles, :except => [:index, :new, :create] do
resources :revisions, :controller => "articles/revisions" do
get 'body', :on => :member
end
end
end
When I call body_workflow_article_revision in my view, it raises
an ActionController::RoutingError:
No route matches {:controller=>"workflow/articles/revisions",
:action=>"body"} The same thing happens when I try using
url_for.
Comments and changes to this ticket
-
Andrew White March 27th, 2011 @ 10:20 PM
- State changed from new to needs-more-info
- Importance changed from to Low
Works fine here - are you passing :article_id and :id to the url helper / url_for ?
-
mikemaltese April 1st, 2011 @ 09:07 PM
Right, it works now, I'm not sure what was happening before. Thanks!
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>