I have a Rails app that I dont kno开发者_如何学Pythonw what version it is.
Here is the app directory:
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.
Check config/environment.rb.
Can you boot the app? If so, start the console, it will tell you the exact version.
There's no Gemfile, that would suggest it's version 2.something
精彩评论