Forum: Ruby on Rails Rails version locking

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C25909d53e693206a9ec8cbf0631092e?d=identicon&s=25 Witold Rugowski (viciu)
on 2006-05-13 02:04
Hi!

I've run on issue with sticking to older rails version on my boxes.

I tried to use
http://wiki.rubyonrails.com/rails/pages/HowtoLockT...
but when running WEBrick (with proper changes to config/environment.rb),
it thorws error: can't activate rails (<= 1.0.0), already activated
rails-1.1.2.

I did play a little with debugger and found out, that it is not possible
to work, since config/boot activates default system rails version, later
goes to envionment.rb, and happily :)) fails.

Is some nice way to lock version, other than checking out whole rails
into vendor sub directory, or hack boot.rb?

More on this topic:
http://nhw.pl/wp/2006/05/13/continuing-with-rails-...

Best regards,

--
Witold Rugowski
http://nhw.pl
This topic is locked and can not be replied to.