Rails 3: no such file to load — thor/group

If you’re getting errors about loading thor when trying to run the Rails 3 binary, try the following:

ruby -r'rubygems' railties/bin/rails

You can also alias this in your .profile or .bashrc for fun and profit:

alias rails3="ruby -r'rubygems' ~/gems/rails/railties/bin/rails"