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.

ryanza's latest activity

Wednesday, July 07 2010
4944 accepts_nested_attributes_for and attr_accessor was updated in Ruby on Rails
  • ryanza
    ryanza commented at 12:52 PM

    Neeraj, Yes I changed it from 'yes'/'no' to true/false

  • ryanza
    ryanza commented at 12:37 PM

    Maybe "accepts_nested_attributes_for :items, :ignore_dirty => true" or something similar?

  • ryanza
    ryanza commented at 12:03 PM

    I thought it had to do with dirty attributes, so i tried to fake it by writing my own dirty methods for the attr_accessor, and had no luck there either.. Hopefu...

  • ryanza
    ryanza commented at 11:21 AM

    Sure:

      def clear_dates_if_available
        if self.unavailable == false || !self.book_out_expired?
          self.out_from, self.out_to = nil, nil
        end
      end
    
  • ryanza
    ryanza commented at 8:45 AM

    Neeraj Singh,

    Its not firing off any of the hooks in the Item model, where it used to in 2.3.5 (on update_attributes and saves). I do understand that the way it...

Wednesday, June 23 2010
4944 accepts_nested_attributes_for and attr_accessor was created in Ruby on Rails
  • ryanza
    ryanza created the ticket at 11:18 AM

    I have a model that has one attr_accessor, When that gets updated through a nested_attributes form, it does not pick up the change to the attr_accessor, and doe...