Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Chew Choon Keat's Profile

GitHub User: choonkeat


Comments by Chew Choon Keat


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