Spence Akiri
2007-Jul-04 15:39 UTC
Using link_to in the controller, or, how do I embed a link in a string?
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
href="...">settings</a>}."
Is there any way to use some kind of link_to here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---