Created
April 17, 2010 08:23
-
-
Save alg/369403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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