Forum: Ruby on Rails application_helper can "include" another helper ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
oo00oo (Guest)
on 2006-03-04 12:39
(Received via mailing list)
My "application_helper.rb" become to large.
I have basic functions that I use for all projects.
Is it possible to define thoses functions inside an external
"basic_helper.rb" and include it in "application_helper.rb" ?
Pat M. (Guest)
on 2006-03-04 12:48
(Received via mailing list)
Sure.  Make your BasicHelper module and
include BasicHelper
in your application_helper.rb file.  You'll of course have to stick
basic_helper.rb in lib/ and require it in application_helper.rb

oo00oo (Guest)
on 2006-03-04 12:51
(Received via mailing list)
Not possible do to that without stick the helper file inside lib folder
I don't like the lib folder. You need to restart the server to apply
change from lib folder.
In local this is easy but a bit boring, but online...
This topic is locked and can not be replied to.