mardi 21 juillet 2015

Unable to access Module methods in my views - RAILS

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