1

Possible Duplicate:
ActionView::Template::Error (960.css isn’t precompiled)

I'm getting this error when running the app in production:

ActionView::Template::Error (custom.css isn't precompiled):

I've run rake assets:precompile, but this doesn't help. In the console I can see that custom.css is compiled:

me@server:/webapps/myapp/current# rake assets:precompile
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby /usr/local/rvm/gems/ruby-1.9.2-p180@rails/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
...
Compiled custom.css  (629ms)  (pid 17716)
Compiled responsive.css  (0ms)  (pid 17716)
Compiled iphone_checkbox_style.css  (30ms)  (pid 17716)
...

I'm running Rails 3.2.2 app on Ubuntu server with Nginx and Passenger.

config/enrivonments/production.rb is configured to have this:

config.assets.compile = false

I sort of running out of ideas what could possible go wrong. Any advice is appreciated!

Community
  • 1
  • 1
Alexander Savin
  • 6,202
  • 3
  • 29
  • 41

1 Answers1

2

You could either add it to your precompile list, like so:

config.assets.precompile += ['custom.css']

or rename it, like so:

custom.css.scss
Brad Werth
  • 17,411
  • 10
  • 63
  • 88