Generating rails app in previous version after rails 3.0 ins

0 views
Skip to first unread message

Juanma Cervera

unread,
Feb 10, 2010, 5:07:14 AM2/10/10
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Conrad Taylor

unread,
Feb 10, 2010, 7:39:41 AM2/10/10
to rubyonra...@googlegroups.com
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
 

--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Marnen Laibow-Koser

unread,
Feb 10, 2010, 9:09:17 AM2/10/10
to rubyonra...@googlegroups.com
Conrad Taylor wrote:
> On Wed, Feb 10, 2010 at 2:07 AM, Juanma Cervera
> <li...@ruby-forum.com>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,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

Conrad Taylor

unread,
Feb 10, 2010, 9:30:23 AM2/10/10
to rubyonra...@googlegroups.com
On Wed, Feb 10, 2010 at 6:09 AM, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
Conrad Taylor wrote:
> On Wed, Feb 10, 2010 at 2:07 AM, Juanma Cervera
> <li...@ruby-forum.com>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

 
> Good luck,
>
> -Conrad

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages