I try to set up helper in app/helperspath.
So, for test purpose, I did this:
#app/helpers/somehelper.rb
class SomeHelper
def some
return true
end
end
I included this line in one of my controllers:
test=SomeHelper.new
That raises uninitialized constant SomeHelper error.
I tried 2 things:
In cofing/application.rb
config.autoload_paths += Dir["#{config.root}/helpers/**/"]
Didn't work.
Then I tried this:
In application_controller
include SomeHelper
Still getting error.
How do I load helper (or any other folder) into my application load path?