Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

url_for not matching route

#6635

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.

Reported by mikemaltese · March 27th, 2011 @ 09:36 PM

State: needs-more-info
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • 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 ?

    March 27th, 2011 @ 10:20 PM

  2. mikemaltese
    mikemaltese

    Right, it works now, I'm not sure what was happening before. Thanks!

    April 1st, 2011 @ 09:07 PM