i have a field which is not required i.e. can be nil. i want to use the ffg: myfield.html_safe in my view. this doesn’t work for the items that have no myfield. i get an exception, how do i get html_safe to apply only if the field is defined? thanks
Share
myfield.html_safe if myfieldormyfield.to_s.html_safe