大家好,我在使用一個運行在phusion乘客上的Rails 3.1應用程序時遇到了一個奇怪的問題。問題一直困擾着我超過3天,現在我不能似乎調試導致此錯誤的錯誤。ActionView :: MissingTemplate錯誤Rails 3.1應用程序Site5託管
在控制器中,我有一個名稱爲admin的文件夾,它包含特定於後端管理部分的控制器。路由是這樣定義的routes.rb中文件:
namespace :admin do
resources :users
match "dashboard/show" => "dashboard#show"
match "access/login" => "access#login"
match "access/attempt_login" => "access#attempt_login"
root :to => "access#login"
end
沒有錯誤可言,當應用程序在我的Mac但是應用是給500內部錯誤的開發環境中運行時,將應用程序部署通過capistrano。請參閱下面的錯誤:時間
Started GET "/admin" for 110.39.204.79 at Sun Mar 04 06:48:23 -0600 2012
Processing by Admin::AccessController#login as HTML
Completed 500 Internal Server Error in 26ms
ActionView::MissingTemplate (Missing template admin/access/login with {:locale=>[:en, :en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
* "/home/devacity/acitywithquirk/releases/20120304124458/app/views"
* "/home/devacity/acitywithquirk/releases/20120304124458/vendor/bundle/ruby/1.8/gems/devise-2.0.4/app/views"
* "/home/devacity/acitywithquirk/releases/20120304124458"
Started GET "/admin/dashboard" for 114.76.86.94 at Mon Mar 05 15:15:19 -0600 2012
ActionController::RoutingError (No route matches [GET] "/admin/dashboard"):
* "/"
):
app/controllers/admin/access_controller.rb:14:in `login'
我已經花了豐富的量在試圖解決這個問題,但我不能to.Any幫助將不勝感激。
謝謝
您確定該視圖位於遠程服務器上嗎? – shingara 2012-03-15 13:01:51
你有'app/views/admin/access/login.html.erb'文件嗎? – 2012-03-15 14:01:57