ActiveAdmin with has_many problem; undefined method 'new_record?'
问题 I'm trying to customise a ActiveAdmin form for a Recipe model that has a has_many relationship with Step. class Recipe < ActiveRecord::Base has_many :steps end class Step < ActiveRecord::Base acts_as_list :scope => :recipe belongs_to :recipe end I have the following in my ActiveAdmin file with relation to this: form do |f| f.has_many :steps do |ing_f| ing_f.inputs end end The following error is thrown when I try to load the form: undefined method `new_record?' for nil:NilClass I've isolated