On 21 February 2011 16:11, korssane korssane <li...@ruby-forum.com> wrote:
> Hi guys,
>
> I am working on importing a website locally to do some changes in a safe
> mode.
>
>
> Is there a way  to go to the website itself and check what is the
> package ( rails version ,..etc) in order to avoid any conflict?

Assuming you have access to the source (you will have difficulty
'importing' it otherwise, though import is a strange word to use) then
look in config/environment.rb and you will likely see a line like
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
in which case it is 2.3.8.  But also check in folder vendor.  If there
is a Rails folder in there then that will be used whatever version it
is.

The above assumes it is not Rails 3, if it is then look in Gemfile in
the application root folder.

Colin


>
> i need simply to reproduce the same environment as in the production to
> be able to do my changes locally
>
> Any suggestion will be appreciated?
>
> thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

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

Reply via email to