Rails error message using fields_for
问题 In my sub-ledger accounting rails app I have a funds model class Fund < ActiveRecord::Base belongs_to :agency has_many :gl_accounts accepts_nested_attributes_for :gl_accounts attr_accessible :name, :agency_id, :fund, :user_stamp, :active attr_accessible :gl_accounts_attributes and a gl_accounts model class GlAccount < ActiveRecord::Base belongs_to :agency belongs_to :fund has_many :class_sessions has_many :facilities validates :agency_id, :fund_id, :name, :gl_account_number, :active, :user