Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updated a note when adding fields to your forms in combination with ardent.
  • Loading branch information
byordereurope committed Sep 12, 2013
1 parent 479f2de commit df6289b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit df6289b

Please sign in to comment.