I have a Rails 4 application which uses a PostgreSQL 9.2.x database that stores html emails. I have a text area field that contains the html5 code for the email.
<%= @mass_email_parm["email"].html_email_text.html_safe %>
In the past I have only used straight html5 code which of course works really well. However for another application I would like to use Twitter Bootstrap code in the field to nicely format a newsletter. When I created a record with Twitter Bootstrap code everything appeared in the email but the Twitter Bootstrap formatting was ignored.
Is there a similar feature similar to html_safe or a gem available that will allow me to place Twitter Bootstrap code in a database field being used in a mailer? For now since I already have my own database I would like to avoid using another service such as MailChimp.
I have searched online but I have not found anything where html_safe is used with Twitter Bootstrap code.
I will continue searching.