Handle errors in upload and sync form

This commit is contained in:
wvengen 2015-04-03 15:53:08 +02:00
parent 18cc105c1e
commit 6ce1b7f928
6 changed files with 61 additions and 38 deletions

View file

@ -51,3 +51,6 @@
= form.text_field 'deposit', class: 'input-mini', style: 'width: 45px'
%td= form.select :article_category_id, ArticleCategory.all.map {|a| [ a.name, a.id ] },
{include_blank: true}, class: 'input-small'
- unless changed_article.errors.empty?
%tr.alert
%td(colspan=11)= changed_article.errors.full_messages.join(', ')