0

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)

请给我一个解决这个问题的方法。

4

3 回答 3

0

我解决了这个问题,问题是我似乎没有主页,所以我创建了一个页面并在高级选项中我将页面转发到 / 这解决了问题

于 2013-08-21T07:15:32.570 回答
0

更改数据库后,我突然遇到了这个错误。我在入门页面上找到了这个建议:

如果您在主页上收到 404 错误,请尝试运行rake db:seed然后重新启动服务器。

这解决了我的情况下缺少主页的问题。

于 2014-06-11T17:35:57.043 回答
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)

添加设计路线解决了这个问题。

于 2013-09-03T11:04:05.930 回答