Upgrade applikations to RoR 2.1.1

Hallo,

ich habe mal wieder angefangen mich mit RoR zu beschäftigen und wie
immer gibt es hier und dort kleine Stolpersteine … Ich werde daher
wahrscheinlich öfter mal die maillist befragen müssen und hoffe nicht zu
doofe Fragen zu stellen - danke für Euer Verständnis im Voraus …

Aktuelles Problem, ich habe auf RoR 2.1.1 up-ge-graded, aber irgendwie
hat meine (kleine demo) Applikation davon nicht mitbekommen … Was habe
ich übersehen ?

Dank & Gruß, Sven

D:\rails>rails -v
Rails 2.1.0

D:\rails>gem update rails
Updating installed gems
Updating rails
Successfully installed activesupport-2.1.1
Successfully installed activerecord-2.1.1
Successfully installed actionpack-2.1.1
Successfully installed actionmailer-2.1.1
Successfully installed activeresource-2.1.1
Successfully installed rails-2.1.1
Gems updated: activesupport, activerecord, actionpack, actionmailer,
activeresource, rails

D:\rails>rails -v
Rails 2.1.1

D:\rails>gem update mongrel
Updating installed gems
Nothing to update

D:\rails>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

D:\rails>cd demo

D:\rails\demo>ruby script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 2.1.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel 1.1.5 available at 0.0.0.0:3000
** Use CTRL-C to stop.
** INT signal received.
Exiting

D:\rails\demo>rake rails:update
(in D:/rails/demo)

D:\rails\demo>ruby script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 2.1.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel 1.1.5 available at 0.0.0.0:3000
** Use CTRL-C to stop.

Hallo Sven,

du musst zusätzlich noch in der config/environment.rb die
RAILS_GEM_VERSION auf ‘2.1.1’ stellen und in deinem RAILS_ROOT “rake
rails:update” ausführen. Dann sollte alles wie gewünscht mit der neuen
Version funktionieren.

Viele
Grüße
Gregor

Hmm vielleicht in evironment.rb gesetzt?

Specifies gem version of Rails to use when vendor/rails is not present

RAILS_GEM_VERSION = ‘2.1.0’ unless defined? RAILS_GEM_VERSION

Nu 'ne Idee. Wär ja so einfach, wenns das wäre

Oliver

Hallo,

danke hat funktioniert … ich hätte nur gedacht, dass das “rake
rails:update” das schon für mich mit erledigt.

Cheers, Sven

Gregor Schmidt wrote on 20:59:

Hallo Sven,

du musst zusätzlich noch in der config/environment.rb die
RAILS_GEM_VERSION auf ‘2.1.1’ stellen und in deinem RAILS_ROOT “rake
rails:update” ausführen. Dann sollte alles wie gewünscht mit der neuen
Version funktionieren.

Viele Grüße

Gregor