Rails应用程序精炼+设计:无法访问Devise视图 [英] Rails App Refinery+Devise: Can't access Devise views
问题描述
newbie Rails开发人员。
我正在尝试创建一个使用Devise进行身份验证和精炼内容管理的应用程序。我遵循了这些教程:
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
我无法访问网站上的任何Devise视图。例如,当我去/ users / sign_in我得到一个404.在我的服务器日志中,我看到以下内容使我认为炼油厂正在处理请求而不是设计路线:
$ b $参数:{path=>users / sign_up}
... $(
$ b b $ b过滤链停止为:find_page呈现或重定向
已完成404未找到39ms(视图:32.5ms | ActiveRecord:1.6ms)
任何想法如何纠正这个并访问Devise sign_in / sign_up视图?这是我的第一个stackoverflow问题,所以如果我需要添加更多具体的信息让我知道。
非常感谢
我在/ cms而不是root安装炼油厂在我的routes.rb:
mount Refinery :: Core :: Engine,:at => '/ cms'
更多信息:
https://github.com/refinery/refinerycms/issues/2116
newbie Rails developer here.
I'm trying to create an app that uses Devise for authentication and Refinery for content management. I've followed these tutorials:
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
I'm unable to access any of the Devise views on the site. For example when I go to /users/sign_in I get a 404. In my server logs I see the following that makes me think that Refinery is processing the request instead of the Devise routes:
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)
Any idea how I can correct this and access the Devise sign_in/sign_up views? This is my first stackoverflow question, so if I need to add more specific information let me know.
Much appreciated
Figured it out. I mounted refinery at /cms instead of root in my routes.rb:
mount Refinery::Core::Engine, :at => '/cms'
More info here: https://github.com/refinery/refinerycms/issues/2116
这篇关于Rails应用程序精炼+设计:无法访问Devise视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!