Rails Goodness: bundle exec when Ruby versions mismatch errors

Rails is sometiems wierd, it complains that the ruby version you are running is different than what is specified in Gemfile.

But when I see the version, using $ ruby -v, it all looks good.

Only solution is to force rails to look for ruby version, inside the directory you are working on, and the way to do it is, using bundle exec, like so


 » RAILS_ENV=development bundle exec rake app:run  


Thank you!!

Comments

Popular posts from this blog

Apache Airflow Wait Between Tasks

Hibernate Interview Questions

Java Spring Interview Questions