新手问题 require 'rails/all' 这是指的哪里的文件,我在哪里可以找到?

Yunich · December 19, 2012 · Last by Yunich replied at December 19, 2012 · 3973 hits

我用 rails new command 建了一个新的项目,在 config\application.rb 里有一段这样的代码

require File.expand_path('../boot', __FILE__)

require 'rails/all'

if defined?(Bundler)
  # If you precompile assets before deploying to production, use this line
  Bundler.require(*Rails.groups(:assets => %w(development test)))
  # If you want your assets lazily compiled in production, use this line
  # Bundler.require(:default, :assets, Rails.env)
end

里面require 'rails/all' 这是指的哪里的文件,我在哪里可以找到?谢谢

执行 gem which rails/all 就能看到了。

@ywjno 'rails/all'这个应该在本地文件能找到的吧

@5long 找到了 thx

You need to Sign in before reply, if you don't have an account, please Sign up first.