(自分用のMEMO書きとなります。)
includeしてあげると使用できるようになる。
class Comment < ActiveRecord::Base
include ActionView::Helpers::UrlHelper
def hoge
user.notices.create(
content: ActionController::Base.helpers.link_to('hogehoge', path)
)
end
end
のような形で使用できる。