I want to organize some helpers in subfolders in the helpers开发者_如何学Python directory. I figured adding this in the initializer would do the trick, but not luck:
config.autoload_paths += Dir["#{RAILS_ROOT}/app/helpers/*"].find_all { |f| File.stat(f).directory? }
You should simply add this to your application.rb
file.
精彩评论