Nested Form Validations

I can’t seem to get my error messages partials to show up for a nested form.

Here’s the specifics:


  validates :email, presence: { message: 'Please enter your email'}
  validates :email, uniqueness: { case_sensitive: false,
                                   message: 'Someone is already using that
                                   email address. Please try another.' }
  belongs_to :account


  validates :name, presence: true

  belongs_to :owner, class_name: 'User'
  accepts_nested_attributes_for :owner
  has_many :users, dependent: :destroy

note: using decent_exposure

= form_for account do |a|
  - if account.errors.any?
        - account.owner.errors.full_messages.each do |msg|
            = msg

    = a.label :name, 'Company name'
    = a.text_field :name

  = a.fields_for :owner do |o|
    = render 'users/form', user: o

    = a.submit 'Sign up'

I can’t understand why the errors aren’t showing up. They ARE showing up in the console however, meaning if I do a binding.pry and check account.owner.errors, the correct error messages are happening.