boot.rb

来自「基于ruby的进阶编程,大家可以对照教材<<Ruby on Rail」· RB 代码 · 共 20 行

RB
20
字号
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rbunless defined?(RAILS_ROOT)  root_path = File.join(File.dirname(__FILE__), '..')  unless RUBY_PLATFORM =~ /mswin32/    require 'pathname'    root_path = Pathname.new(root_path).cleanpath(true).to_s  end  RAILS_ROOT = root_pathendif File.directory?("#{RAILS_ROOT}/vendor/rails")  require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"else  require 'rubygems'  require 'initializer'endRails::Initializer.run(:set_load_path)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?