Can one controller use another's Helper Methods?

If I have controller1 and controller2, how would controller1 call method
Arf in controller2’s helpers?

Ben L.

You can either:

a) Put the method into application_helper.rb

b) Add “helper :controller2” to controller1


Pete Y.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs