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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-04 11: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" ?
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-03-04 11: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

Pat
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-04 11: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.