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.

Jon's latest activity

Wednesday, July 29 2009
2346 named_scope doesn't override default_scope's :order key was updated in Ruby on Rails
  • Jon
    Jon commented at 4:19 PM

    Thanks Jack. In my experimentation, some of the other keys weren't working either. Primarily :select. This is a pretty dangerous bug.

Thursday, June 25 2009
2253 named_scope and nested order clauses was updated in Ruby on Rails
2346 named_scope doesn't override default_scope's :order key was updated in Ruby on Rails
  • Jon
    Jon commented at 9:49 PM

    I'm not so sure this bug is fixed. Product.my_named_scope works now, but I'm losing the order key on something like @store.products.my_named_scope. So a scoped ...

Tuesday, September 09 2008
977 [PATCH] Added grouped_options_for_select helper to form_options_helper for wr... was updated in Ruby on Rails
  • Jon
    • Title changed from [PATCH] Added optgroups_with_options_for_select helper to form_options_helper for wrapping option tags in optgroups. to [PATCH] Added grouped_options_for_select helper to form_options_helper for wrapping option tags in optgroups.
    by Jon at 1:52 AM

    Further updated patch including better testing and improved documentation.

Monday, September 08 2008
977 [PATCH] Added optgroups_with_options_for_select helper to form_options_helper... was updated in Ruby on Rails
  • Jon
    Jon commented at 5:13 PM

    Tom-

    I made the changes you suggested. I never liked that error at the beginning, but I didn't want to raise an exception either. Maybe I'm too nice? :-D

    It now...

Friday, September 05 2008
977 [PATCH] Added optgroups_with_options_for_select helper to form_options_helper... was updated in Ruby on Rails
  • Jon
    Jon commented at 10:22 PM

    I replied to some of Mislav's thoughts in the IRC channel but I'll repeat here.

    I avoided the options argument name because it is often used in many other helpe...

  • Jon
    Jon created the ticket at 4:28 PM

    Returns a string of <option> tags, using options_for_select, but wraps them with <optgroup> tags.

    
    #Sample usage:
    labels = ['North America','Europe']
    groups =...