Using a helper method in a model

I know this is officially a bad design but I need to use the link_to
method in a model and cannot seem to call the method correctly, can
anyone point me in the right direction?

Iain A. wrote:

I know this is officially a bad design but I need to use the link_to
method in a model and cannot seem to call the method correctly, can
anyone point me in the right direction?

link_to is a method in the ActionView::Helpers::UrlHelper module.

But I have a feeling whatever you’re trying to achieve you’re probably
going the wrong way about it. link_to is a view helper. I can’t see any
reason to call it from a model method.