Nested model validation - errors don't show
问题 There have been many questions about this, but none of them seem to help. And yes, I have watched this rails cast. I have an Author who has many Books, like so: Author: class Author < ActiveRecord::Base attr_accessible :name has_many :books, dependent: :destroy accepts_nested_attributes_for :books, allow_destroy: true validates :name, presence: true validates :name, length: { minimum: 3 } end Book: class Book < ActiveRecord::Base attr_accessible :name, :year belongs_to :author validates :name