【问题标题】:Rails App Refinery+Devise: Can't access Devise viewsRails App Refinery+Devise:无法访问设计视图
【发布时间】:2013-05-05 02:28:20
【问题描述】:

这里是 Rails 开发新手。

我正在尝试创建一个使用 Devise 进行身份验证和 Refinery 进行内容管理的应用。我遵循了这些教程:

http://sdownie.com/blogs/integrating-refinery-rails-3-2-into-your-existing-rails-app http://refinerycms.com/guides/with-an-existing-rails-31-devise-app

我无法访问网站上的任何设计视图。例如,当我转到 /users/sign_in 时,我得到一个 404。在我的服务器日志中,我看到以下内容让我认为 Refinery 正在处理请求而不是设计路由:

Processing by Refinery::PagesController#show as HTML
Parameters: {"path"=>"users/sign_up"}
...
Filter chain halted as :find_page rendered or redirected
Completed 404 Not Found in 39ms (Views: 32.8ms | ActiveRecord: 1.6ms)

知道如何更正此问题并访问 Devise sign_in/sign_up 视图吗?这是我的第一个 stackoverflow 问题,所以如果我需要添加更多具体信息,请告诉我。

非常感谢

【问题讨论】:

    标签: ruby-on-rails devise refinerycms


    【解决方案1】:

    想通了。我在 routes.rb 中将炼油厂安装在 /cms 而不是 root:

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

    更多信息在这里: https://github.com/refinery/refinerycms/issues/2116

    【讨论】:

      猜你喜欢
      • 2012-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-24
      相关资源
      最近更新 更多