2013-07-04 74 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拯救了我的时间:) –

相关问题