Trying to use this method (gist of which is use self.method_name
in the FunnyHelper
, then call it as FunnyHelper.method_name
in the view).
However this causes at least a couple of problems - view methods like h()
and named routes get broken (they're ok with the module method def method_name
but not within any class method def self.method_name
).
Obviously I can avoid this by dropping the def self.method_name
back to def method_name
; anyone with any suggestions for how I can have my cake and eat it too?