Vote count: 0 Tell me whether it is possible somehow to deduce errors in the classical Active Model style? my method: def update address = Address.find(@user.billing_address) form = AddressForm.new(address) if form.validate(params[:billing]) form.save else flash[:notice] = form.errors.full_masseges end end my form object: class AddressForm < Reform::Form include Reform::Form::ActiveModel::Validations include Reform::Form::ActiveModel::FormBuilderMethods property :first_name property :last_name property :address property :city property :country_id...
ادامه مطلب