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.

Ivan's latest activity

Wednesday, January 05 2011
4242 Nested child only updates if parent changes. was updated in Ruby on Rails
  • Ivan
    Ivan commented at 8:23 PM

    I'm using Rails 3.0.3 and still having the same problem.

    class Project < ActiveRecord::Base
    has_many :tasks, :dependent => :destroy, :inverse_of => :project, :a...

Monday, November 08 2010
5923 uniqueness with accepts_nested_attributes_of was updated in Ruby on Rails
  • Ivan
    Ivan commented at 11:38 AM

    Sorry, I'd like to say the select 'generated' by Rails to verify if the key record already exists.
    In the example, 'room_id' would be 'nil', because it wasn't s...

Friday, November 05 2010
5923 uniqueness with accepts_nested_attributes_of was created in Ruby on Rails
  • Ivan
    Ivan created the ticket at 8:36 PM

    class Room < ActiveRecord::Base

    has_many :objects, :dependent => :destroy, :inverse_of => :room

    accepts_nested_attributes_for :objects, :allow_destroy => true
    
    ...