Forum: Ruby on Rails Using link_to in the controller, or, how do I embed a link i

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Spence Akiri (Guest)
on 2007-07-04 19:40
(Received via mailing list)
For things like flash[:etc], and other dynamic text sent from the
controller, how do you embed links?

I've currently fallen back on actually embedding HTML, but as routes
may change, this doesn't seem like a good practice.

An example of what I'm doing now:
flash[:notice] = "#{@var} added! To remove, see your #{<a

Is there any way to use some kind of link_to here?
This topic is locked and can not be replied to.