app/controllers/spree/dealers_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def spree_dealer_params
      params.require(:dealer).
        permit(:ship_address, :bill_address, :company, :buyer_contact,
          :manager_contact, :phone, :web_address, :taxid, :resaler_number,
          :terms, :alternate_email, :notes, :use_billing,
          user_attributes: [:email, :password, :password_confirmation],
          bill_address_attributes: permitted_address_attributes,
          ship_address_attributes: permitted_address_attributes)
    end
def spree_dealer_params params . require ( :dealer ) . permit ( :ship_address , :bill_address , :company , :buyer_contact , :manager_contact , :phone , :web_address , :taxid , :resaler_number , :terms , :alternate_email , :notes , :use_billing , user_attributes : [ :email , :password , :password_confirmation ] , bill_address_attributes : permitted_address_attributes , ship_address_attributes : permitted_address_attributes ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .