It doesn’t look pretty, but if you really wanted to embed a link in your rails flash response you could do it like this:
flash[:success] = "Foo. #{ActionController::Base.helpers.link_to "Create new listing", '/listings/new'}".html_safe
Couple other options can be found here:
http://stackoverflow.com/questions/4051423/using-html-in-rails-flash-messages
Filed under: rails Tagged: rails, RoR, rubyonrails
