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.

Subba's latest activity

Friday, July 09 2010
5053 child/grandchild associations reload from db after nested attributes assignment was updated in Ruby on Rails
  • Subba
    Subba commented at 3:32 AM

    attached is code fix.

    This is what is currently happening.

    • a new @ship record is created.
    • @ship.parts.create(:name => 'part_name') creates a new part in the da...
Wednesday, July 07 2010
5053 child/grandchild associations reload from db upon validation error for nested... was updated in Ruby on Rails
  • Subba
    Subba commented at 2:00 PM

    it is nothing to do with validation failure.

    it is due optimization present in nested_attributes.

    if you look into nested attributes line 358 (nested_attributes...

Thursday, June 10 2010
3052 assign_nested_attributes_for_collection_association ought to assign object's ... was updated in Ruby on Rails
  • Subba
    Subba commented at 11:54 AM

    it will fix your problem. nested attributes hash if contains id it believes existing record.

Wednesday, June 09 2010
3052 assign_nested_attributes_for_collection_association ought to assign object's ... was updated in Ruby on Rails
  • Subba
    Subba commented at 9:51 PM

    Hi George
    is below code explains your problem

    class Ship < ActiveRecord::Base
      has_one :pirate, :inverse_of => :ship
      accepts_nested_attributes_for :pirate, ...
Thursday, February 04 2010
3830 Removing , from WrappedDatabaseException constructor method was updated in Ruby on Rails
  • Subba
    Subba commented at 12:54 AM

    what does assigned user cleared means. is it accepted or rejected. do i need to do anything

Wednesday, February 03 2010
3830 Removing , from WrappedDatabaseException constructor method was updated in Ruby on Rails
  • Subba
    • Assigned user changed from Jeremy Kemper to José Valim
    by Subba at 1:36 AM
Monday, February 01 2010
3830 Removing , from WrappedDatabaseException constructor method was updated in Ruby on Rails
  • Subba
    • Assigned user changed from Yehuda Katz (wycats) to Jeremy Kemper
    by Subba at 6:31 PM
  • Subba
    • Assigned user set to Yehuda Katz (wycats)
    by Subba at 1:46 PM
  • Subba
    Subba created the ticket at 4:58 AM

    When i am looking through the rails activerecord base code i observerved ,= statement as shown below. at line 85 of activerecord/lib/active_record/base.rb

    class...