RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: choonkeat
Site: http://blog.choonkeat.com
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
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