Skip to content

Commit

Permalink
Fix receipt item category form
Browse files Browse the repository at this point in the history
  • Loading branch information
sachac committed Jun 16, 2015
1 parent 0b7c8af commit cb26c21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/receipt_item_categories/_form.html.haml
@@ -1,5 +1,10 @@
= simple_form_for @receipt_item_category do |f|
= f.errors
- if @receipt_item_category.errors.any?
#error_explanation
%h2= "#{pluralize(@receipt_item_category.errors.count, "error")} prohibited this from being saved:"
%ul
- @receipt_item_category.errors.full_messages.each do |msg|
%li= msg
.inputs
= f.input :name
.form-group
Expand Down

0 comments on commit cb26c21

Please sign in to comment.