Set precompile to true in config/application.rb file