Ben Lisbakken
2006-Jul-11 21:54 UTC
[Rails] Can one controller use another''s Helper Methods?
If I have controller1 and controller2, how would controller1 call method Arf in controller2''s helpers? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
Pete Yandell
2006-Jul-12 01:19 UTC
[Rails] Can one controller use another''s Helper Methods?
You can either: a) Put the method into application_helper.rb b) Add "helper :controller2" to controller1 Cheers, Pete Yandell http://9cays.com/ On 12/07/2006, at 7:54 AM, Ben Lisbakken wrote:> If I have controller1 and controller2, how would controller1 call > method > Arf in controller2''s helpers? > > Thanks, > Ben Lisbakken > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails