How can I tell in what version of code Rails is written in?

Hi all

I’ve just been given a copy of a Rails application and looking at the
files it seems to be older than version 2.3 (uses .rhtml eg) but is
there any way to find out the Rails version an application is written
for just from looking at the files?

Thanks in advance

Brynjolfur

On Nov 16, 1:29pm, “[email protected][email protected] wrote:

Hi all

I’ve just been given a copy of a Rails application and looking at the
files it seems to be older than version 2.3 (uses .rhtml eg) but is
there any way to find out the Rails version an application is written
for just from looking at the files?

Take a look at the Gemfile (if there is one) or look for
RAILS_GEM_VERSION (i think) in environment.rb. Also check whether
rails has been frozen into the app at vendor/rails

Fred