2013-07-04 71 views
8

我是紅寶石軌道上的新手。當有什麼錯誤我得到這個錯誤:Ruby on Rails:我可以在哪裏獲取錯誤日誌?

Template is missing 

Missing template errors/error_404 with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. 
Searched in: * "C:/Users/Avi/Documents/Aptana Studio 3 Workspace/social/app/views" * "C:/RubyonRails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/devise-2.2.4/app/views" 

但問題是語法錯誤或編程錯誤的東西。

我可以得到一個錯誤日誌,就像在cakephp中一樣嗎?

+0

你在哪裏運行rails server? – Debadatt

+5

從開發中的rails應用程序的目錄:'$ tail -f log/development.log'。這將流式發展日誌。 –

回答

8

像@ thomas-klemm已經寫了,你可以在日誌中尾巴文件。這些日誌以您正在運行的環境(本地開發,生產生產等)命名。

,如果你想獲得你所能做的從我所知道tail log/*

輸出,CakePHP有非常好的應用監控和管理後臺。如果你需要類似rails的東西,你可以使用better_errors:https://github.com/charliesome/better_errors

+0

感謝@phoet拯救了我的時間:) –

相關問題