From noreply at rubyforge.org Mon May 4 20:37:19 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 4 May 2009 20:37:19 -0400 (EDT) Subject: [Celerity-development] [ celerity-Bugs-25778 ] Can't call each on Celerity::SelectList#options Message-ID: <20090505003719.415521598076@rubyforge.org> Bugs item #25778, was opened at 2009-05-04 20:37 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=24033&aid=25778&group_id=6198 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Can't call each on Celerity::SelectList#options Initial Comment: The code sums up the problem: you can't call each on the "array" produced by calling options on a SelectList element $browser.select_list(:name => "act[interaction_id]").options.each {|y| y} leads to the error: "yield called out of block (LocalJumpError)" ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=24033&aid=25778&group_id=6198 From noreply at rubyforge.org Tue May 5 05:50:41 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 5 May 2009 05:50:41 -0400 (EDT) Subject: [Celerity-development] [ celerity-Bugs-25778 ] Can't call each on Celerity::SelectList#options Message-ID: <20090505095043.332191779933@rubyforge.org> Bugs item #25778, was opened at 2009-05-05 02:37 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=24033&aid=25778&group_id=6198 Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Can't call each on Celerity::SelectList#options Initial Comment: The code sums up the problem: you can't call each on the "array" produced by calling options on a SelectList element $browser.select_list(:name => "act[interaction_id]").options.each {|y| y} leads to the error: "yield called out of block (LocalJumpError)" ---------------------------------------------------------------------- >Comment By: Jari Bakken (jarib) Date: 2009-05-05 11:50 Message: This works fine for me. Celerity returns a regular array of strings in this case, so you shouldn't have any trouble iterating over it. Please try it with the latest version of both JRuby and Celerity. If you're still having problems, open a bug on the GitHub issue tracker (http://github.com/jarib/celerity/issues), and attach a script + HTML that will reproduce the issue. I'll close this issue for now. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=24033&aid=25778&group_id=6198