creating rails 2.3.5 sites after rails 3 install

So I installed rails 3 but want to still work with 2.3.5.

I removed the rails3pre gem but it's still the current version of rails.

And if I try to do

  rails _2.3.5_ MyNewSite

I get

  RubyGem version error: railties(3.0.pre not = 2.3.5)

:frowning:

So I installed rails 3 but want to still work with 2.3.5.

I removed the rails3pre gem but it’s still the current version of

rails.

And if I try to do

rails 2.3.5 MyNewSite

I get

RubyGem version error: railties(3.0.pre not = 2.3.5)

:frowning:

How did you remove it?

-Conrad

just a gem uninstall.

so the problem is railties doesn’t exist before rails 3, so usr/bin/rails is broke for old projects

it used to be this:

version = “>= 0”

if ARGV.first =~ /^(.*)$/ and Gem::Version.correct? $1 then

version = $1
ARGV.shift

end

gem ‘railties’, version load Gem.bin_path(‘railties’, ‘rails’, version)

i had to change the end to this:

gemname = ‘railties’

gemname = ‘rails’ if version.split(“.”).first.to_i == 2

gem gemname, version load Gem.bin_path(gemname, ‘rails’, version)