Why is accepts_nested_attributes_for not working for me? (rails 3)
问题 I'm using formtastic and haml on a Rails 3 application. I'm trying to make a nested form for surveys and questions, but it's just not working for me. I've watched the railscast and on it and everything, but I can't seem to make it work for my application. So right now, I have the following: models class Survey < ActiveRecord::Base attr_accessible :intro, :name, :pubdate, :enddate, :pubid belongs_to :user has_many :questions, :dependent => :destroy, :autosave => true accepts_nested_attributes