I have the following bit of code:
I want the "<br />" to be outputted as html not a string. Is there a way to do this?Code:<%=h ! @eda.comm_email.blank? ? ("Email: " + @eda.comm_email +"<br />) : '' %>
Rick
| SitePoint Sponsor |

I have the following bit of code:
I want the "<br />" to be outputted as html not a string. Is there a way to do this?Code:<%=h ! @eda.comm_email.blank? ? ("Email: " + @eda.comm_email +"<br />) : '' %>
Rick
Ruby, Ruby when will you be mine
The h() function you have there converts HTML entities for onscreen display. Get rid of that.



Try thatCode:<%= !@eda.comm_email.blank? ? (h("Email: " + @eda.comm_email) +"<br />") : '' %>I just moved the h() function farther down and closed it before it reached <br />
Bookmarks