开发者

What version of Rails is this?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜