新手问题 rails s -e production 报错

qinfanpeng · April 02, 2013 · Last by qinfanpeng replied at May 06, 2013 · 3134 hits

报错: Template is missing

Missing template bills/index, application/index with {:locale=>[:zh_CN], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in: * "/home/qfp/workspace/rails/smart_bill/app/views" * "/home/qfp/.rvm/gems/[email protected]/gems/twitter-bootstrap-rails-2.2.6/app/views"

开始我也以为上是网上所说的静态文件的问题,把 production.rb 下的 config.serve_static_assets 设为了 true,还是报错,细想我这个应该不是静态文件的问题。 麻烦各位晓得 指点下,不甚感激!

你确定你有 bills/index 这个文件?

感谢你的热心,我确定,因为在 development 下运行正常

昨天试过,不起作用

已解决。我最初只加了 slim-rails 这个 gem, 再加入 slim 这 fem 后,production 下也不报错了

You need to Sign in before reply, if you don't have an account, please Sign up first.