...
Accepts a parameter error_msg
to use a custom message when editing the user does not work, for example when the wrong credentials are used. Message is returned in request.flash object.
Example:
Code Block |
---|
{% authentication_edit_form "dealers", error_msg: "custom error message" %} {% authentication_field "email", class: "form-field" %} {% authentication_field "current_password", class: "form-field" %} {% authentication_field "password", class: "form-field" %} {% authentication_field "confirm_password", class: "form-field" %} <input type="submit" value="Save"> {% endauthentication_edit_form %} |
...