You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
402 B
13 lines
402 B
10 years ago
|
= form_for @bike, html: {class: 'form-horizontal'} do |f|
|
||
9 years ago
|
- if @bike.errors.any?
|
||
10 years ago
|
#error_explanation
|
||
|
%h2= pluralize(@bike.errors.count, "error") + " prohibited this bike from being saved:"
|
||
|
%ul
|
||
|
- @bike.errors.full_messages.each do |msg|
|
||
9 years ago
|
%li= msg
|
||
|
= render 'fields', f: f
|
||
10 years ago
|
|
||
|
.row
|
||
|
.actions.col-sm-offset-2
|
||
9 years ago
|
= f.submit value: "Update", class: "btn btn-default"
|