Permalink
Browse files

Update routing for admin namespace

  • Loading branch information...
1 parent d28c512 commit ed52a111b1d797706dc71cc36e1ff66a92e03c05 Kunal Shah committed May 20, 2009
Showing with 9 additions and 7 deletions.
  1. +9 −7 multi_site_extension.rb
@@ -8,15 +8,17 @@ class MultiSiteExtension < Radiant::Extension
url "http://radiantcms.org/"
define_routes do |map|
- map.resources :sites, :path_prefix => "/admin",
- :member => {
- :move_higher => :post,
- :move_lower => :post,
- :move_to_top => :put,
- :move_to_bottom => :put
- }
+ map.namespace :admin, :member => { :remove => :get } do |admin|
+ admin.resources :sites, :member => {
+ :move_higher => :post,
+ :move_lower => :post,
+ :move_to_top => :put,
+ :move_to_bottom => :put
+ }
+ end
end
+
def activate
# ActionController::Routing modules are required rather than sent as includes
# because the routing persists between dev. requests and is not compatible

0 comments on commit ed52a11

Please sign in to comment.