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: 1234567$ 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: 1assets:precompile All you have to do […]

Tags: , , , ,

Rails ExecJS::RuntimeError with Rails V3.11

Posted in Rails

If you’re riding Ruby on Rails V3.11 and get the error 1get rails ExecJS::RuntimeError Then try installing the V8 Javascript interpreter into Ruby. Just edit your Gemfile and add 1gem ‘therubyracer’ then execute the famous 1bundle install This has also several advantages, such like: evaluate Javascript from with in Ruby Embed your Ruby objects into […]

Tags: , , , ,

creating fallback for sad code

Posted in Rails

You can use rescue to create a fallback scenario, when your code gets strange… Just return a value to rescue. Our example will show it as follows: First we create a hash with a key/value pair and store it in h 1h = { :age => 35 } Now let’s bother our script with a […]

Tags: , , ,

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