On 06/03/2011 10:00 AM, Sta Canovist wrote:
On Jun 3, 6:54 pm, Hassan Schroeder<[email protected]>
wrote:
You seem to be mixing up commands between Rails 2.x and 3.x.
Which do you have installed? Or more to the point, what is the app
you're trying to run based on?
Well If I type
rails -v (I guess this is the right way?)
then I see
Rails 1.2.6
This tells you what rails is installed on your system (at least what is
in your path). The real question is what rails version the application
is running with on the target system wherever that is. You need to run
'rails -v' on that system or look in config/environment.rb. Towards the
top there should be a line defining the 'RAILS_GEM_VERSION'. This tells
you what version of rails you need to use to duplicate the present
production environment. Another possibility would be if rails were
frozen into the system (unlikely). In this case you would find rails in
the directory 'vendor/rails' and all of your plugins in 'vendor/plugins'
etc. The most likely case given that this has apparently been around
for a while is that you have an app written to an old rails version.
You *must* duplicate that environment as a first step and get the app
running in that environment to have any chance of updating it in any way.
Good luck
Norm
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.