[Locomotive-users] rails update
Ryan Raaum
ryan.raaum at gmail.com
Fri Aug 18 01:54:55 GMT 2006
Hi,
On 8/17/06, Con Rodi <conrodi at vt.edu> wrote:
>
> After proceeding with these steps:
>
> 1) Open Locomotive
> 2) Apple-T to open a terminal
> 3) Type gem update rails --include-dependencies<enter>
> 4) Restart locomotive.
>
> rails -v reports version 1.1.6
>
> Using the web interface below, reports 1.1.2 and the older Action Pack
> etc.
>
> RAILS_GEM_VERSION is also 1.1.2, contrary to the below expectation. I
> tried changing this manually, but no effect.
>
Did you restart the app? Did you update rails in the same bundle that your
app is using?
The rails generator (i.e. the command that creates your rails app in the
first place - "rails myapp" - sets the RAILS_GEM_VERSION variable), updating
rails via gems has no impact on this setting. You have to change it
yourself. Or, if you comment it out, your app will follow whatever is the
most recent version installed.
So what version is actually serving my pages?
>
Whatever you see on the /rails/info/properties page is the definitive
answer.
Best,
-r
cmr
>
> On Aug 17, 2006, at 3:19 PM, Ryan Raaum wrote:
>
> If you want to definitively find out what rails version you're running,
> open a terminal from Locomotive and run "rails -v" at the prompt OR the
> rails info that you can see on the default starter rails page is always
> available at:
>
> http://localhost:3000/rails/info/properties (replace 3000 with the right
> port for your app)
>
> Also, by default, the rails generator sets RAILS_GEM_VERSION in your
> config/environment.rb file to be whatever version of rails it was run
> under. If this is set in your config, this is the version of rails your app
> will be using, even if a newer version is installed!
>
>
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>
--
Ryan Raaum
http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida
http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060818/91d6d017/attachment.htm
More information about the Locomotive-users
mailing list