Can't mass-assign protected attributes
问题 Updating the code formatting for better viewing. Folks, I have been looking at this for sometime but I don't understand what could be messing up here. I am using Devise. class User < ActiveRecord::Base has_many :addresses accepts_nested_attributes_for :addresses # Other stuff here end class Address < ActiveRecord::Base belongs_to :user validates_presence_of :zip #:street_address1, end -------------------- log output begin ------------------------------ Started POST "/users" for 127.0.0.1 at