You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
When a route points to an unimplemented controller,
ActionController::RoutingError
is raised with a messageNo route matches ...
, although the route does exist and match.and example spec that fails with misleading error:
The text was updated successfully, but these errors were encountered: