Use form errors helper in CI runner edit form

This commit is contained in:
Grzegorz Bizon
2016-05-19 22:01:53 +02:00
parent 3b0eeccc03
commit 8ab4a67ca6
+1 -4
View File
@@ -2,10 +2,7 @@
%h4 Runner ##{@runner.id}
- if @runner.errors.any?
.error-message.js-errors
- @runner.errors.full_messages.each do |error|
%div= error
= form_errors(@runner)
%hr
= render 'form', runner: @runner, runner_form_url: runner_path(@runner)