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)

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)

On Sat, Jan 16, 2010 at 7:17 PM, ignu [email protected] wrote:
RubyGem version error: railties(3.0.pre not = 2.3.5)
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)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs