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)

On Mon, Jan 18, 2010 at 1:58 PM, Len Smith <ignu.sm...@gmail.com> wrote:

> just a gem uninstall.
>
> On Sun, Jan 17, 2010 at 7:44 PM, Conrad Taylor <conra...@gmail.com> wrote:
>
>> On Sat, Jan 16, 2010 at 7:17 PM, ignu <ignu.sm...@gmail.com> wrote:
>>
>>> 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)
>>>
>>> :-(
>>>
>>
>> How did you remove it?
>>
>> -Conrad
>>
>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Talk" group.
>>> To post to this group, send email to rubyonrails-t...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>>
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to rubyonrails-t...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to