Hans
2013-Apr-10 08:40 UTC
Extra characters rendered in view that cannot be found! A possible bug in rendering engine?
Hi
I have a very strange error when rendering the index view
Rails is rendering the characters *us* at the bottom of the screen, below
an index table, and I cannot find these characters in the view.
This part of the view looks like
<section id="main">
<section id="group"></section>
<section id="content">
<section id="data_table_section">
<script>
us
</section>
</section>
The part from id=content is yield in a layout file
<section id=''content''>
<%= yield %>
</section>
</section>
When I delete the content of the view template, i.e the <section
id="data_table_section"> <script> the *us* is still there
When I delete <%= yield %> in the layout, the *us* disappears
When I search for the *us* in the view code it is not found
When I add my own extra characters in the bottom of the view template code,
i.e after <script> the *us* is displayed after these characters
When I delete the layout the *us* is still there
The only thing I can come up with is that us is generated by the yield
function in some way, but that seems as a very strange explanation!
Anyone that has had this problem before?
Anyone that know how to find extra characters as us in the code ?
Could it be a bug in the rendering engine ?
Any advices would be great appreciated
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/7ghhzExUlU4J.
For more options, visit https://groups.google.com/groups/opt_out.