我以前从未在我的应用程序中遇到过管理页面的问题,但是在我的机器重新启动后,我收到了这个错误:
RuntimeError at /admin/sessions/new
Template engine not found: /sessions/new
使用这个缩写的回溯:
/Users/jeremysmith/code/robusto_server/admin/controllers/sessions.rb in block (2 levels) in <top (required)>
render "/sessions/new", nil, :layout => false
/Users/jeremysmith/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb in service
si.service(req, res)
app.rb 中的所有内容都与以前工作时相同:
set :login_page, "/admin/sessions/new"
enable :sessions
disable :store_location
access_control.roles_for :any do |role|
role.protect "/"
role.allow "/sessions"
end
access_control.roles_for :admin do |role|
role.project_module :stat_definitions, "/stat_definitions"
role.project_module :accounts, "/accounts"
end