← til

Insane can't find executable Rails for Rails error

February 17, 2012

After running any rails command I was getting this error:

`bin_path': can't find executable rails for rails-3.2.1 (Gem::Exception)
  from /home/hrvoje/.rvm/gems/ruby-1.9.2-p290/bin/rails:19:in `<main>'

Installing latest railties fixes it:

$ gem install railties --pre

Did you like this article? You can follow me on Twitter or subscribe to the RSS feed if you'd like to follow along.