You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
When viewing the details page for an Equipment Object, the "p" "small" and "/br" HTML tags are visible. also shows up literally, rather than as the space it is supposed to create.
The text was updated successfully, but these errors were encountered:
This has to do with how Rails 3 treats all strings as not html safe (as opposed to Rails 2, which trusted everything by default). Thus all strings in the view are by default sanitized.
To fix this, you'll need to mark the appropriate strings using the '.html_safe' method.
-Adam
On May 31, 2012, at 9:00 AM, ncmaas wrote:
When viewing the details page for an Equipment Object, the
and tags are visible.
Reply to this email directly or view it on GitHub: #35
So, there are several places where this same error occurs. Let's consolidate them all into one issue: here!
When viewing an equipment model's show page, "This is a " is surrounded by HTML. Solution: change line 4 of app/views/equipment_models to be <%=@equipment_model.formatted_description.html_safe %>
When viewing an equipment model's show page, the serial numbers were formatted incorrectly. Solution: change line 102 to <%= " Serial #: #{equipment_object.serial}".html_safe unless equipment_object.serial.blank? %>
When viewing the details page for an Equipment Object, the "p" "small" and "/br" HTML tags are visible. also shows up literally, rather than as the space it is supposed to create.
The text was updated successfully, but these errors were encountered: