This project is archived and is in readonly mode.

#6635 needs-more-info
mikemaltese

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

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>

Pages