RailsCasts Pro episodes are now free!

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