Refinerycms在生产模式中显示错误
过滤链停止为:find_page呈现或重定向
在本地我没有问题
完整的错误详情:
Started GET "/" for 127.0.0.1 at 2013-08-21 11:54:49 +0530
Processing by Refinery::PagesController#home as HTML
Parameters: {"locale"=>:en}
Rendered public/404.html (0.1ms)
Filter chain halted as :find_page rendered or redirected
Completed 404 Not Found in 13ms (Views: 1.5ms | ActiveRecord: 2.1ms)
请建议我解决这个问题的方法。
答案 0 :(得分:0)
我解决了这个问题, 问题是我似乎没有主页, 所以我创建了一个页面,在高级选项中,我将页面转发到/ 这解决了问题
答案 1 :(得分:0)
不同页面的相同问题,(localhost:3000 / users / sign_in)
在routes.rb文件中没有提到(devise_for:users .....),因此炼油厂显示此错误
Started GET "/users/sign_in" for 127.0.0.1 at 2013-09-03 16:09:23 +0530
Processing by Refinery::PagesController#show as HTML
Parameters: {"path"=>"users/sign_in", "locale"=>:en}
Refinery::Role Load (1.1ms) SELECT "refinery_roles".* FROM "refinery_roles" WHERE "refinery_roles"."title" = 'Refinery' LIMIT 1
Refinery::User Load (1.6ms) SELECT "refinery_users".* FROM "refinery_users" INNER JOIN "refinery_roles_users" ON "refinery_users"."id" = "refinery_roles_users"."user_id" WHERE "refinery_roles_users"."role_id" = 1
Refinery::Page Load (1.5ms) SELECT "refinery_pages".* FROM "refinery_pages" INNER JOIN "refinery_page_translations" ON "refinery_page_translations"."refinery_page_id" = "refinery_pages"."id" WHERE "refinery_page_translations"."locale" IN ('en') AND "refinery_page_translations"."slug" = 'users' AND "refinery_pages"."parent_id" IS NULL LIMIT 1
Refinery::Page Load (1.0ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."menu_match" = '^/404$' LIMIT 1
Rendered public/404.html (0.1ms)
Filter chain halted as :find_page rendered or redirected
Completed 404 Not Found in 25ms (Views: 8.4ms | ActiveRecord: 5.1ms)
添加设计路线解决了这个问题。
答案 2 :(得分:0)
我在更改数据库后突然遇到此错误。我在Getting Started页面上找到了这条建议:
如果主页上出现404错误,请尝试运行
rake db:seed
,然后重新启动服务器。
这解决了在我的情况下缺少主页的问题。