rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled)

前端 未结 14 1725
自闭症患者
自闭症患者 2020-11-27 09:02

I made a basic rails app with a simple pages controller with an index function and when I load the page I get:

ActionView::Template::Error (application.css i         


        
14条回答
  •  没有蜡笔的小新
    2020-11-27 09:33

    Here's the quick fix:

    If you're using capistrano do this add this to your deploy.rb:

    after 'deploy:update_code' do
      run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
    end
    

    cap deploy

提交回复
热议问题