Forum: Ruby on Rails writing a method that is accessible from any views as well as any controller

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.
Mr. Bless (Guest)
on 2008-11-29 13:40
(Received via mailing list)
HI guys where should i have  to write the method that it is
accessibible from any controller and any views. When i write the
method in application controller then it is accessible in controller
only and when i write it on application helper it is accessible on
views only. I even tried to write it as module in the lib and included
in the application controller, in that case it becomes inaccessible in
This topic is locked and can not be replied to.