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.

Mark Turner's latest activity

Thursday, October 08 2009
3344 counter_cache doesn't update when :order specified on has_many association was updated in Ruby on Rails
  • Mark Turner
    Mark Turner commented at 8:31 AM

    Cant Duplicate In Rails 2.3.4

    app/models/invoice_line_item.rb

    class InvoiceLineItem < ActiveRecord::Base
      has_many :expenses, :order => "created_at ASC"
    end
    

    ...