Fix HTML escaping in the guides

render :html escapes the argument if not provided as html safe.
This commit is contained in:
Rafael Mendonça França 2016-10-25 11:18:34 -02:00
parent 0e7dfbe9a2
commit 8b3ed2b68a
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ module RailsGuides
@view.content_for(:header_section) { @header }
@view.content_for(:page_title) { @title }
@view.content_for(:index_section) { @index }
@view.render(layout: @layout, html: @body)
@view.render(layout: @layout, html: @body.html_safe)
end
end
end

View File

@ -88,7 +88,7 @@
<div id="container">
<div class="wrapper">
<div id="mainCol">
<%= yield.html_safe %>
<%= yield %>
<h3>Feedback</h3>
<p>