Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

respond_to js with render :layout => false segfault

#4081

A little convoluted but I have the following code sequence.

JS/jQuery calls

$.get(uri + "/update_status", null, null, "script");

which is defined as:

def update_status
 @sites = Site.all
 PingWorker.async_ping_all_sites
 respond_to do |format|
  format.js { render :layout => false }
 end
end

which is supposed to render

- @sites.each do |site| 
 - if site.status == "dead" 
  jQuery('#block#{site.id}').removeClass("green")
  jQuery('#block#{site.id}').addClass("red")
 - else 
  jQuery('#block#{site.id}').removeClass("red")
  jQuery('#block#{site.id}').addClass("green")

Which in return, gives me a segfault and kills my Mongrel instance.
I am using 3.0.0pre edge, ruby 1.9.1.

The only other thing I get is from firebug which shows a xml response of:
XML Parsing Error: no element found Location: moz-nullprincipal:{7a8e232a-7979-da44-8d55-22a592fcbfb5} Line Number 1, Column 1:
^

Reported by Luke van der Hoeven · March 1st, 2010 @ 08:59 PM

State: wontfix
Milestone: 3.0.2
Assigned to: nobody
Importance: none

Activity

  1. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • Milestone cleared.
    • State changed from new to incomplete

    What version of Ruby are you on?

    March 27th, 2010 @ 10:45 AM

  2. José Valim
    José Valim
    • State changed from incomplete to wontfix

    Unfortunately, Ruby 1.9.1 has segfaults that were fixed only on 1.9.2. Please use 1.9.2-head in RVM. Thanks!

    April 7th, 2010 @ 12:51 AM

  3. Jeremy Kemper