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:inactivate’
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 C.

On Wed, Feb 10, 2010 at 2:07 AM, Juanma C.
[email protected]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 C.

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 T. wrote:

On Wed, Feb 10, 2010 at 2:07 AM, Juanma C.
[email protected]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 C.

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,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On Wed, Feb 10, 2010 at 6:09 AM, Marnen Laibow-Koser
[email protected]wrote:

There sghould be a way to do this.
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