Generating rails app in previous version after rails 3.0 ins

Hello

Anybody knows how to generate a rails application in a previous version, after the installation of Rails 3.0.0.beta gem.

This would work before, rails _2.3.5_ my_app

but fails now with ...

/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError)   from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate'   from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem'   from /usr/bin/rails:18

There sghould be a way to do this.

Thanks Juanma Cervera

Hello

Anybody knows how to generate a rails application in a previous version,

after the installation of Rails 3.0.0.beta gem.

This would work before,

rails 2.3.5 my_app

but fails now with …

/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error’:

RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError)

from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate’

from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem’

from /usr/bin/rails:18

There sghould be a way to do this.

Thanks

Juanma Cervera

If you’re using Mac OS, then you can install Rails 2.3.5 on a different Ruby VM.

For example, I’m using Ruby 1.9.2 with Rails 3.0 Beta and Ruby 1.8.7/1.9.1 are

using Rails 2.3.5.

Good luck,

-Conrad

Conrad Taylor wrote:

/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem' from /usr/bin/rails:18

There sghould be a way to do this.

Thanks Juanma Cervera

If you're using Mac OS, then you can install Rails 2.3.5 on a different Ruby VM. For example, I'm using Ruby 1.9.2 with Rails 3.0 Beta and Ruby 1.8.7/1.9.1 are using Rails 2.3.5.

What a clumsy workaround. There's gotta be a better way.

Good luck,

-Conrad

Best,

Conrad Taylor wrote:

/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error’:

RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError)

from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate’

from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem’

from /usr/bin/rails:18

There sghould be a way to do this.

Thanks

Juanma Cervera

If you’re using Mac OS, then you can install Rails 2.3.5 on a different

Ruby

VM.

For example, I’m using Ruby 1.9.2 with Rails 3.0 Beta and Ruby

1.8.7/1.9.1

are

using Rails 2.3.5.

What a clumsy workaround. There’s gotta be a better way.

Yes, it’s clumsy but it works. My boss wanted this earlier because there was

no built in way to target the rails command to generate a 2.3.x application. One

really wants to do the following:

rails -v=2.3.5 -d mysql application_name

or something similar. I’ll initiate an enhancement request and see what the Rails

core team think about this.

-Conrad