Skip to content

Instantly share code, notes, and snippets.

@alg alg/routes.rb
Created Apr 17, 2010

Embed
What would you like to do?
module ActionDispatch
module Routing
class Mapper
module HttpHelpers
def any(*args, &block)
map_method([ :get, :post, :put, :delete ], *args, &block)
end
end
end
end
end
MyApp::Application.routes.draw do
resource :account do
with_scope_level(:member) do
any :dashboard
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.