On 7/13/06, Mike Kogan <mike@kogan.org> 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
> Rails@lists.rubyonrails.org
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060714/34b45ede/attachment.html