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.

Mike Breen's latest activity

Saturday, April 11 2009
2365 add :new_if_blank option to fields_for for nested associations was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 7:39 PM

    I was originally calling the param create_blank but I can't for the life of me remember why we renamed it. Eloy do you recall?

Wednesday, April 08 2009
2453 correct typos in DateHelper comments was created in Ruby on Rails
  • Mike Breen
    Mike Breen created the ticket at 1:27 AM

    fixes two minor typos in the comments for #date_select and #datetime_select.

Sunday, March 29 2009
2365 add :new_if_blank option to fields_for for nested associations was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 3:32 PM

    I'm not sure I like the idea of the option ":new => 3" for collection associations. I'd have to play around with it to get a real feel for it.

  • Mike Breen
    Mike Breen commented at 3:24 PM

    Here's an updated patch based on Eloy's suggestions for refactoring.

  • Mike Breen
    Mike Breen commented at 3:09 PM

    I think the refactorings are spot on. The fact that :new_is_blank can be true is not really exceptional in this case. Also build_nested_association is now a lit...

1211 reset_counter_cache was updated in Ruby on Rails
  • Mike Breen
    • Tag set to active_record, counter_cache, patch
    by Mike Breen at 2:00 PM

    This patch adds Model.reset_counter_cache(:association_name).

Saturday, March 28 2009
1885 file_field default value was updated in Ruby on Rails
Friday, March 27 2009
2365 add :new_if_blank option to fields_for for nested associations was created in Ruby on Rails
  • Mike Breen
    Mike Breen created the ticket at 11:30 PM

    This patch will allow you to initialize any blank associations for your models that are using nested_attributes_for.

    # for one-to-one association
    form_for(@pos...
Thursday, March 26 2009
1709 script/destroy scaffold was updated in Ruby on Rails
  • Mike Breen
    • Tag set to 2.3.2, generator, patch, resource, scaffold
    by Mike Breen at 2:45 PM

    I put Marco's fix into a patch.

162 Rails not handling links with & correctly was updated in Ruby on Rails
  • Mike Breen
    • Tag set to actionpack, bug, edge, patch, tests
    by Mike Breen at 1:49 PM

    Here's a patch that fixes this in page.redirect.