Error:- ActionView::Template::Errror (application.css isn’t precompiled)

Rails assumes that you have your files pre-compiled in the production environment.

if want to compile at runtime set as the following

in the file config/environments/production.rb

config.assets.compile = true

for better performance in production want to set config.assets.compile to false in production.rb

You can precompile with this rake task:

bundle exec rake assets:precompile

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s