开发者

What version of Rails is this?

开发者 https://www.devze.com 2023-04-01 20:53 出处:网络
I have a Rails app that I dont kno开发者_如何学Pythonw what version it is. Here is the app directory:

I have a Rails app that I dont kno开发者_如何学Pythonw what version it is.

Here is the app directory:

What version of Rails is this?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消