Commit 8ab4a67c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use form errors helper in CI runner edit form

parent 3b0eeccc
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
%h4 Runner ##{@runner.id} %h4 Runner ##{@runner.id}
- if @runner.errors.any? = form_errors(@runner)
.error-message.js-errors
- @runner.errors.full_messages.each do |error|
%div= error
%hr %hr
= render 'form', runner: @runner, runner_form_url: runner_path(@runner) = render 'form', runner: @runner, runner_form_url: runner_path(@runner)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment