Convert a Rails2 namespace route to rails3
I have this code in Rails2:
map.namespace(:admin, :开发者_开发技巧path_prefix => 'refinery') do |admin|
admin.load_gallery "/load_gallery", :controller => "pages",
:action => "load_gallery"
end
..and want to convert it to rails3 route. Is there any possibility that someone can demonstrate how this is done?
it might look like
scope 'refinery', :as => :admin do
match 'load_gallery'=> 'pages#load_gallery'
end
精彩评论