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

Yunich · 2012年12月19日 · 最后由 Yunich 回复于 2012年12月19日 · 3973 次阅读

我用 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

需要 登录 后方可回复, 如果你还没有账号请 注册新账号