html_safe method exists only for string type

if msg is Fixnum then will raise Exception that .html_safe method not defined