I have a LabelTagHelper with a custom method label_tag, but I need this method only in the new , create , edit and update .
Is there a way to define this helper only for a specific action? Something like helper :label_tag, :only => [:new, :create, :update, :destroy]? Or is it safe to call self.class.helper :label_tagin the before_filter file?
source
share