如何更改Refinery CMS管理路径?

时间:2013-12-19 21:01:28

标签: ruby-on-rails-4 routes refinerycms

我做到了:

MyApp::Application.routes.draw do                                                 

  get 'admin', :to => redirect('/refinery')                                      

  mount Refinery::Core::Engine, :at => '/'                                          

end

它允许我向用户提供一个更友好的网址,一个对他们有意义的网址,但路径仍然会更改为localhost:3000/refinery

那么,我该怎么做?没有重定向也许?

1 个答案:

答案 0 :(得分:5)

EDIT, 对不起,您实际上可以在config / initializers / refinery / core.rb中使用该文件,只需添加此行

即可
config.backend_route= "admin"