Sometimes I need to use helper methods in controllers (sanitization methods, rendering text back to the view, various other applications). What's the right way? I've got:
self.class.helpers.myhelperview_context.myhelperinclude MyHelper; myhelperhelper MyHelper; myhelper
Aucun commentaire:
Enregistrer un commentaire