BikeBikeBike/app/views/layouts/fields/_errors_default.html.haml

9 lines
278 B
Plaintext
Raw Normal View History

- # we should render errors here
- if @record.errors.any?
.form-errors
%ul
- @record.errors.full_messages.each do |msg|
- # not sure how this works, we may have to pull
- # some sort of error id out of this and construct
- # an I18n translation key
%li=msg