Forum: Ruby on Rails duplicate render problem

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.
Ed4bee1bbad8d935137a60f9e37bd3ac?d=identicon&s=25 Adam Rothschild (aroths1)
on 2007-02-09 17:25
(Received via mailing list)
When I invoke the code below, there seems to be duplicate rendering
going on. That is, the "render :update do |page|" block seems to be
executing twice... or at least that's what I think is going on because
I see the exact same block-produced output twice in my browser. Maybe
my diagnosis is wrong, but I get the same behavior in both Firefox and
IE7. Either way, could anybody help me figure out what's going on here
and how to fix it? This has been baffling me for hours! Thanks!

Here are the relevant code fragments:

VIEW (i.e., containing the element to be updated)
 <div id="new_slot"></div>

  def show_slot
    render :update do |page|
      page.insert_html :before, 'new_slot', :inline=>"<%=
This topic is locked and can not be replied to.