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.

flip's latest activity

Sunday, June 07 2009
2777 Updating nested attributes with has_one relationship doesn't work correctly was updated in Ruby on Rails
  • flip
    flip commented at 9:34 PM

    ok, i guess you mean:

    u.attributes = {:profile_attributes => {:id => 2, :city => 'nowhere'}}
    

    is this documented somewhere? Using the "old way" my approach wou...

  • flip
    flip created the ticket at 8:59 PM

    Updating the attributes of the child model results in the creation of a new Object with nil values when using a has_one relationship and nested attributes.

    >> ...
Friday, July 18 2008
649 Validation issue with HABTM was updated in Ruby on Rails
  • flip
    flip commented at 12:49 AM
  • flip
    flip created the ticket at 12:38 AM

    Validation of attributes by the model layer is not always possible with a HABTM relationships.

    Here is a simple situation so you can understand where i'm goin...

Sunday, July 13 2008
615 ActiveRecord exists? won't work with keyless tables was created in Ruby on Rails
  • flip
    flip created the ticket at 11:46 PM

    exists? needs a primary key to work. So it won't work with tables without a primary key.

    1. File activerecord/lib/active_record/base.rb, line 601

    601: d...