Rails beginner
Rails beginner

Reputation: 14504

What version of Rails is this?

I have a Rails app that I dont know what version it is.

Here is the app directory: enter image description here

Upvotes: 1

Views: 105

Answers (3)

theIV
theIV

Reputation: 25774

Take a look at your config/environment.rb file. You should see a line like:

RAILS_GEM_VERSION = 'x.x.x' unless defined? RAILS_GEM_VERSION

where x.x.x should be your version.

That being said, you also have to make sure that there is no version of Rails in your vendor directory, as that will override whatever gem version it might try loading.

Upvotes: 5

aurelian
aurelian

Reputation: 166

Check config/environment.rb.

Can you boot the app? If so, start the console, it will tell you the exact version.

Upvotes: 3

Matthew Rathbone
Matthew Rathbone

Reputation: 8269

There's no Gemfile, that would suggest it's version 2.something

Upvotes: 0

Related Questions