diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-11-07 11:49:57 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-11-07 11:49:57 +1000 |
commit | e5eece41b5ac740f8a137b3228d052273c641099 (patch) | |
tree | bc4ddadd2fa87958a4ae455cb5892eaacdd5d882 /actionpack/lib/action_dispatch/routing | |
parent | 5f7f3adccd2ddc1d307e4e5ea4a323562b1cf7ff (diff) | |
download | rails-e5eece41b5ac740f8a137b3228d052273c641099.tar.gz rails-e5eece41b5ac740f8a137b3228d052273c641099.tar.bz2 rails-e5eece41b5ac740f8a137b3228d052273c641099.zip |
Document the controller method for AD's Mapper
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index e760eb0196..48afca56d8 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -518,6 +518,12 @@ module ActionDispatch @scope[:blocks] = recover[:block] end + # Scopes routes to a specific controller + # + # Example: + # controller "food" do + # match "bacon", :action => "bacon" + # end def controller(controller, options={}) options[:controller] = controller scope(options) { yield } |