Ruby on Rails precompile assets errors
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Ruby on Rails precompile assets errors

Posted in Rails

If you are upgrading to Rails 3.1.0 from Rails 3.1.0.rc6, you could get an error message like this:

1
2
3
4
5
6
7
$ RAILS_ENV=production RAILS_GROUPS=assets rake assets:clean
tmp:clear assets:precompile rake aborted!
mypicture.gif is not precompiled
(in app/assets/stylesheets/mystyle.css.scss)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

while running the command:

1
assets:precompile

All you have to do during the assets:precompile task is:

1
config.assets.compile = true

I think this could be an error in Rails 3.1, but after this fix everything should work now like a charm…

Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Please enter a secure code to see if you are a spammer ;-)

 

Copyright © 2011-2018  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy