Forum: Ruby on Rails Weird simple_format behavior

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Josh C. (Guest)
on 2006-02-09 17:36
(Received via mailing list)
I'm working on a page combining Ajax.InPlaceEditor and the
simple_format helper.  The page is demonstrating some very strage
behavior.  First, here is the code:

<p>Bio:   </p>
<div id="bio">
<% if %>
     <%= simple_format( ) %>\
<% else %>
     No Bio Yet
<% end %>
</div><em>(click on your to bio edit it)</em>

<script language="JavaScript">
    new Ajax.InPlaceEditor('bio', '/users/preferences/savebio/<%= %>', {rows:10,cols:40});

The InPlaceEditor works perfectly, but the page itself is what is
acting weird.  Somehow on every refresh, an additional line break is
added to the final paragraph inside of the <div> so that the page
begins to rapidly expand.  I can't figure out how this is happening,
because it persists through both hard and soft refreshes *without
being saved to the database.*

Has anyone else experienced this strange behavior?

This topic is locked and can not be replied to.