开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜