Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML Tag Showing in View of Rails App when Using Internet Explorer
    primarykey
    data
    text
    <p>When I view my Rails (3.1) app in Internet Explorer, for some reason it sometimes shows bits of html tags at the end of my page, but it doesn't do this in Chrome or Firefox. In particular, it shows part of the tag - never the full tag, but part - like <code>&lt;/h</code> or <code>&lt;/htm</code> - in the view as text (at the bottom of the page).</p> <p>In my layout template, I do have this:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;&lt;%= title %&gt;&lt;/title&gt; &lt;% if params[:controller] == 'pages' %&gt; &lt;%= stylesheet_link_tag "static_pages", "https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" %&gt; &lt;% elsif %&gt; &lt;%= stylesheet_link_tag "bootstrap", "https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" %&gt; &lt;% end %&gt; &lt;%= javascript_include_tag "https://ws.sharethis.com/button/buttons.js", "admin.js" %&gt; &lt;%= csrf_meta_tag %&gt; &lt;script type="text/javascript" charset="utf-8"&gt; //jQuery.noConflict(); jQuery.extend( jQuery.fn.dataTableExt.oStdClasses, { "sSortAsc": "header headerSortDown", "sSortDesc": "header headerSortUp", "sSortable": "header" } ); jQuery(document).ready(function() { jQuery('#datatable').dataTable( { "sDom": "&lt;'row'&lt;'span5'l&gt;&lt;'span8'f&gt;r&gt;t&lt;'row'&lt;'span4'i&gt;&lt;'span8'p&gt;&gt;", "sPaginationType": "bootstrap" } ); } ); &lt;/script&gt; &lt;%= yield :javascript%&gt; &lt;%= yield :script%&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When I look at the html source code generated for the view, I notice that the Chrome/Firefox the source concludes with <code>&lt;/body&gt;</code> and not <code>&lt;/html&gt;</code> (or any partial code like IE).</p> <p>Can someone please let me know what I'm doing wrong? Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload