From c6d9f7d03ed37d06c39508e505ed84beaf6769f0 Mon Sep 17 00:00:00 2001 From: Maciej Krajowski-Kukiel Date: Tue, 9 Oct 2018 15:05:01 +0200 Subject: [PATCH] Update user_registration.liquid --- instance/forms/user_registration.liquid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/instance/forms/user_registration.liquid b/instance/forms/user_registration.liquid index 66e9d69..392a2d2 100644 --- a/instance/forms/user_registration.liquid +++ b/instance/forms/user_registration.liquid @@ -10,7 +10,10 @@ fields: label: Last Name validation: - rule: presence - error: '{{form.fields.last_name.label}} must be provided' + error: '{{form.fields.last_name.label}} must be provided' # maciek: having a form_builder, preferably renamed to form is + great idea. Defining built in validation as array seems to be semantic issue, as it does not make sense to add multiple errors for + "presence" etc - using hash, as it's currently, seems ok to me. IIRC, the main idea was to allow developer to their own + validations - that's something we have recently added, we need to add documentation for it - the idea is quite similar. email: label: Email password: