validates_presence_of :match,
:message => "for your name and password could not be found. Did you #{link_to "forget your password", help_person_path}?"
That’s what I want to do. I can interpolate variables that are set in the model, but using simple Rails code like “link_to” doesn’t seem to work. Which is a bummer.
You can’t and shouldn’t call the
link_tomethod from your models. However, you can get access to named routes like this:Very hackish. I hope you will not use it.