diff options
| author | hukl <contact@smyck.org> | 2009-10-20 22:10:07 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-20 22:10:07 +0200 |
| commit | 8d8b530e2c9f5e2debb2d6abb421187c31733c34 (patch) | |
| tree | ef3a26d934c74277d6a9e2bd299bf4cf254b94a4 /app | |
| parent | 0ee8f0b8f09cf5e09f9e67c6d4d6880150c54ce8 (diff) | |
display error messages for users
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/users/edit.html.erb | 2 | ||||
| -rw-r--r-- | app/views/users/new.html.erb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 79f3bb7..63dfd9c 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | <h1>Edit existing user</h1> | 1 | <h1>Edit existing user</h1> |
| 2 | 2 | ||
| 3 | <%= error_messages_for :user %> | ||
| 4 | |||
| 3 | <% form_for @user do |f| %> | 5 | <% form_for @user do |f| %> |
| 4 | <table id="new_node"> | 6 | <table id="new_node"> |
| 5 | <tr> | 7 | <tr> |
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 0629641..8bd21d6 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | <h1>Create new user</h1> | 1 | <h1>Create new user</h1> |
| 2 | 2 | ||
| 3 | <%= error_messages_for :user %> | ||
| 4 | |||
| 3 | <% form_for @user do |f| %> | 5 | <% form_for @user do |f| %> |
| 4 | <table id="new_node"> | 6 | <table id="new_node"> |
| 5 | <tr> | 7 | <tr> |
