不同页面的相同问题,(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)
添加设计路线解决了这个问题。