如何更改炼油厂CMS管理路径? [英] How do I change the Refinery CMS admin path?

查看:75
本文介绍了如何更改炼油厂CMS管理路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经这样做:

MyApp::Application.routes.draw do                                                 

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

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

end

它可以让我给用户一个更友好的网址,一个对他们有意义的网址,但路径仍更改为 localhost:3000 / refinery

It allows me to give to my users a friendlier URL, one that makes sense to them, but the path still changes to localhost:3000/refinery.

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

So, how do I do this? Without redirection perhaps?

推荐答案

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

EDIT, sorry you actually can use the file at config/initializers/refinery/core.rb just add this line

config.backend_route= "admin"

这篇关于如何更改炼油厂CMS管理路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆