문제

I have a Rails 1.2.6 application and I would like to be able to create a folder in app/ and have its contents loaded.

This is the behaviour of Rails 3. How can I achieve the same thing in Rails 1.2.6?

도움이 되었습니까?

해결책

in config/environment.rb

config.load_paths += Dir["#{RAILS_ROOT}/app/jobs"]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top