NoMethodError - new since upgrading to Rails 4
问题 I'm at my wit's end. I upgraded to Rails 4.2.10, and everything is terrible. Here is the relevant part of /models/product.rb class Product < ActiveRecord::Base delegate_attributes :price, :is_master, :to => :master And here is /models/variant.rb: class Variant < ActiveRecord::Base belongs_to :product The variants table has fields for "price" and "is_master". Products table does not. It used to be the case that one could access Product.price and it would get/set the price for the master