I want to split my helpers in different modules (and files), but I found some problems which I got around with the following solution:
# app/helpers/application_helper.rb
module ApplicationHelper
include ApplicationContainer
# ...
end
# app/helpers/partials/application_container.rb
module ApplicationContainer
# ...
end
In particular at the beginning I was looking to have a file /app/helpers/_application_container_helper.rb
that gave me uninitialized constant ApplicationHelper::ApplicationContainer
(and different other errors playing around it), but right now I'm not even sure that makes sense.
Any Idea or suggestions?