Skip to content

Instantly share code, notes, and snippets.

@alg
Created April 17, 2010 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alg/369403 to your computer and use it in GitHub Desktop.
Save alg/369403 to your computer and use it in GitHub Desktop.
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