Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Chew Choon Keat's Profile

GitHub User: choonkeat

Site: http://blog.choonkeat.com

Comments by Chew Choon Keat

Avatar

Using "html_safe" works for flash :notice messages and it is better than a blanket rendering of all :notice messages using raw()

So, that'll become:

redirect_to :back,
  :notice=>"Undid #{@version.event}. #{link}".html_safe