Rails 3.1 How to avoid ActionView::Template::Error (application.css isn't precompiled)
If you're encountering an error such as:
ActionView::Template::Error (application.css isn't
precompiled)
then you are probably using Rails 3.1 and have forgotten to run the following rake task:
RAILS_ENV=production bundle exec rake
assets:precompile.
With this rake task you tell Rails to precompile your application's assets such as css and javascript files (maybe from SASS and CoffeeScript).
The Asset Pipeline, that's how this nice feature in Rails is called, is a very mighty concept so you possibly want to have a look at the following Rails guide to get a deeper understanding of the topic:
-
Billing
-
Deployment
-
RailsHoster Gem
- How do install the RailsHoster gem?
- What are the requirements to use the RailsHoster deployment gem?
- How do I get the app token needed to initialize my app?
- Can I setup my app without having an application token?
- I have forgotten my app url. How do I find out where to find my app after the deployment?
- View all
-
Getting Started
-
More Documentation