I have a method I would like multiple controllers to share. Where does
it belong?
I have it in a file in lib for the moment. It seems it should be here or
in controller/application.rb.
Thanks in advance.
I have a method I would like multiple controllers to share. Where does
it belong?
I have it in a file in lib for the moment. It seems it should be here or
in controller/application.rb.
Thanks in advance.
On 7/13/06, Mike K. [email protected] wrote:
I have a method I would like multiple controllers to share. Where does
it belong?I have it in a file in lib for the moment. It seems it should be here or
in controller/application.rb.Thanks in advance.
–
Posted via http://www.ruby-forum.com/.
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
I guess that depends on wether you want it for all controllers, or just
some. IMHO if you want the methods in all, put it in applications
controller, if you just want to define it in some, use a module in lib.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs