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.

23inhouse's latest activity

Saturday, February 19 2011
6450 Arel generates invalid SQL when using DISTINCT ON in PostgreSQL was updated in Ruby on Rails
  • 23inhouse
    23inhouse commented at 12:52 PM

    Not sure if this is appropriate, and i'm no doctor, but i concur.

    I need Arel to generate this SQL in postgres.

    Discount.select("DISTINCT ON(email) *").order("...
Sunday, February 06 2011
6382 present? behaves differently for has_many and belongs_to associations was updated in Ruby on Rails
  • 23inhouse
    23inhouse commented at 11:05 PM

    Forget it something weird was happening in my project, it works in a new rails app.

  • 23inhouse
    23inhouse commented at 11:03 PM

    Now i'm pretty sure something is up.


    b = Bar.create
    b.foos.build
    b.foos.first.save
    b.foos.first.present?
    => false # this is still false

  • 23inhouse
    23inhouse created the ticket at 10:36 PM
6314 accepts_nested_attributes_for was updated in Ruby on Rails
  • 23inhouse
    23inhouse commented at 3:12 AM

    Michael and Santiago

    Thank you for clarifying that. I was really enjoying just jamming the params into the Models attributes= methods and having it all work, bu...

Monday, January 31 2011
6314 accepts_nested_attributes_for was updated in Ruby on Rails
  • 23inhouse
    23inhouse commented at 9:39 PM

    I should have mentioned that it doesn't work in any version after 3.0.0. I was trying to isolate the change that broke it.

    I just ran it in 3.0.4.rc1 and it sti...

Wednesday, January 19 2011
6314 accepts_nested_attributes_for was updated in Ruby on Rails
  • 23inhouse
    23inhouse commented at 3:00 AM

    There is a typo please use:

    rake test:functionals

  • 23inhouse
    23inhouse created the ticket at 2:53 AM

    There is a bug introduced from Rails 3.0.0 -> 3.0.1

    It changes the way new models are saved when their class has "accepts_nested_attributes_for" set and one of ...