diff options
Diffstat (limited to 'app/views/assets')
| -rw-r--r-- | app/views/assets/edit.html.erb | 6 | ||||
| -rw-r--r-- | app/views/assets/new.html.erb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/assets/edit.html.erb b/app/views/assets/edit.html.erb index d60db94d..e65d6004 100644 --- a/app/views/assets/edit.html.erb +++ b/app/views/assets/edit.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <h1>Editing asset</h1> | 1 | <h1>Editing asset</h1> |
| 2 | 2 | ||
| 3 | <% form_for(@asset) do |f| %> | 3 | <%= form_for(@asset) do |f| %> |
| 4 | <%= f.error_messages %> | 4 | <%= form_error_messages(f) %> |
| 5 | 5 | ||
| 6 | <p> | 6 | <p> |
| 7 | <%= f.submit 'Update' %> | 7 | <%= f.submit 'Update' %> |
| @@ -9,4 +9,4 @@ | |||
| 9 | <% end %> | 9 | <% end %> |
| 10 | 10 | ||
| 11 | <%= link_to 'Show', @asset %> | | 11 | <%= link_to 'Show', @asset %> | |
| 12 | <%= link_to 'Back', assets_path %> \ No newline at end of file | 12 | <%= link_to 'Back', assets_path %> |
diff --git a/app/views/assets/new.html.erb b/app/views/assets/new.html.erb index 366488f4..6c1310a7 100644 --- a/app/views/assets/new.html.erb +++ b/app/views/assets/new.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <h1>New asset</h1> | 1 | <h1>New asset</h1> |
| 2 | 2 | ||
| 3 | <% form_for(@asset, :html => { :multipart => true }) do |f| %> | 3 | <%= form_for(@asset, :html => { :multipart => true }) do |f| %> |
| 4 | <%= f.error_messages %> | 4 | <%= form_error_messages(f) %> |
| 5 | 5 | ||
| 6 | <p> | 6 | <p> |
| 7 | <%= f.label :name %><br /> | 7 | <%= f.label :name %><br /> |
| @@ -14,4 +14,4 @@ | |||
| 14 | </p> | 14 | </p> |
| 15 | <% end %> | 15 | <% end %> |
| 16 | 16 | ||
| 17 | <%= link_to 'Back', assets_path %> \ No newline at end of file | 17 | <%= link_to 'Back', assets_path %> |
