From df6289b9757c87551494c9be926e6ebe312e5460 Mon Sep 17 00:00:00 2001 From: byordereurope Date: Thu, 12 Sep 2013 21:42:56 +0200 Subject: [PATCH] Update README.md Updated a note when adding fields to your forms in combination with ardent. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e6aa085..b0b4443 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,9 @@ To change the validation rules of the User model you can take a look at [Ardent] Feel free to add more fields to your table and to the validation array. Then you should build your own sign-up form with the additional fields. +NOTE: If you add fields to your validation rules into your model like above, do not forget you have to add those fields to the UserController store function also. If you forget this, the form will always return with an error. +Example: $user->terms = Input::get('terms'); + #### Passing additional information to the make methods If you want to pass additional parameters to the forms, you can use an alternate syntax to achieve this.