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.

Mike's latest activity

Friday, August 21 2009
2318 accepts_nested_attributes_for raises NoMethodError when saving polymorphic be... was updated in Ruby on Rails
  • Mike
    Mike commented at 2:11 PM

    Not a fix, but a workaround:

    
    class Treasure < ActiveRecord::Base
      belongs_to :looter, :polymorphic => true
    
      accepts_nested_attributes_for :looter
    
      def bu...