2014-05-12 20:09:19 -06:00
|
|
|
- # we should render errors here
|
2014-05-17 18:20:13 -06:00
|
|
|
- if @record && @record.errors.any?
|
2014-05-12 20:09:19 -06:00
|
|
|
.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
|