Skip to content

Instantly share code, notes, and snippets.

@lukaszx0
Created May 8, 2014 20:54
Show Gist options
  • Save lukaszx0/7f2383d0a783330f3cad to your computer and use it in GitHub Desktop.
Save lukaszx0/7f2383d0a783330f3cad to your computer and use it in GitHub Desktop.
[43] square » Rails.application.routes.draw do
» get "/foo" => "foo#bar"
» end
=> nil
[44] square » Rails.application.routes.routes
=> [
[0] GET /foo(.:format) {:controller=>"foo", :action=>"bar"}
]
from /Users/lukaszstrzalkowski/Development/rails/actionpack/lib/action_dispatch/routing/route_set.rb:532:in `recognize_path'
[46] square » Rails.application.routes.recognize_path("/foo", :method => :get)
ActionController::RoutingError: No route matches "/foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment