Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionController::RoutingError raised with incorrect message if route points to missing class #2546

Closed
trek opened this issue Aug 16, 2011 · 2 comments

Comments

@trek
Copy link
Contributor

trek commented Aug 16, 2011

When a route points to an unimplemented controller, ActionController::RoutingError is raised with a message No route matches ..., although the route does exist and match.

MyApp::Application.routes.draw do
  root :to => 'welcome#index'
end

and example spec that fails with misleading error:

describe "welcome" do
  it "GET / -> welcome#show" do
    { :get => "/" }.should route_to(:controller => "welcome", :action => 'index')
  end
end
@bennytheshap
Copy link

Yes, please fix this. It always makes me crazy.

@trek
Copy link
Contributor Author

trek commented Aug 16, 2011

I'm closing this issue in favor of #2549, which includes a patch

@trek trek closed this as completed Aug 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants