Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Rails 1.2.6 应用程序,我希望能够在 app/ 中创建一个文件夹并加载其内容。
这是 Rails 3 的行为。如何在 Rails 1.2.6 中实现相同的功能?
在 config/environment.rb
config.load_paths += Dir["#{RAILS_ROOT}/app/jobs"]