Skip to content

Instantly share code, notes, and snippets.

@devudilip
Created April 23, 2012 06:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

ok thanks dev

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