So I was trying to call link_to in a helper module
here is the code
module GroupsHelper
include ActionView::Helpers::TextHelper
include ActionView::Helpers::UrlHelper
def self.link_to_publish
link_to "test"
end
end
It returns
undefined local variable or method `link_to' for GroupsHelper:Module
Does anyone know why? Thx