Skip to content

Instantly share code, notes, and snippets.

@devudilip
Created April 23, 2012 06:48
Show Gist options
  • Save devudilip/2469235 to your computer and use it in GitHub Desktop.
Save devudilip/2469235 to your computer and use it in GitHub Desktop.
How to create rails app with older version
Hi geeks,
my rails new version is 3.2.3.
if i wanted to create new rails app with older version say 3.0.5,
i can create using the command
rails _3.0.5_ new app
but i was getting an error
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:316:in `bin_path': can't find gem railties (["3.0.5"]) with executable rails (Gem::GemNotFoundException)
from /usr/local/bin/rails:19:in `<main>'
so
i just installed
sudo gem install rails -v ="3.0.5"
and then
rails _3.0.5_ new app
now its working fine
thank you
@jimmythakkar
Copy link

i am getting the same error.If you find a solution or have found one already plz help me out also.
Thanks,
Jimmy

@devudilip
Copy link
Author

Hi jimmy

the above solution worked for me.
you just try with uninstalling old version once

sudo gem clean or sudo uninstall gem rails

and again try with installing the gem with whatever version u want, so that it will install with dependencies and railties.

so try it :-)

@jimmythakkar
Copy link

ok thanks dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment