I am having a module lets say TestHelper inside app/helpers. I am trying to access it in a view that is placed in another folder (views) outside app folder.
I am not able to access the methods in TestHelper from that view. But if I give TestHelper.instance_methods I am able to see all the methods I have defined in TestHelper. How to access the method in TestHelper in my view that is outside app folder.
Aucun commentaire:
Enregistrer un commentaire