# Localized active record errors

**URL:** <https://www.ruby-forum.com/t/localized-active-record-errors/91711>\
**Category:** Rails\
**Created:** [April 11, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/localized-active-record-errors/91711 "2007-04-11T20:12:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@danny](https://www.ruby-forum.com/u/danny)\
**Post date:** [April 11, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/localized-active-record-errors/91711/1 "2007-04-11T20:12:52Z")

</div>

Hello people,

I was wondering how to make the errors that an active record model  
throws during form validation apear in dutch. the message is easily  
adaptable, but the subject of the error still shows up in english.

thanks!

---

<div class="post-metadata">

**Author:** ![danny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@danny](https://www.ruby-forum.com/u/danny)\
**Post date:** [April 11, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/localized-active-record-errors/91711/2 "2007-04-11T20:22:49Z")

</div>

danny wrote:

> Hello people,
> 
> I was wondering how to make the errors that an active record model  
> throws during form validation apear in dutch. the message is easily  
> adaptable, but the subject of the error still shows up in english.
> 
> thanks!

Quick fix: don’t use the default errors\_for - helper but implement your  
own. It’s done in 2 seconds and is a no-brainer. I usually handle this  
as a partial instead.

@model.error holds the error collection (attribute as key, errors as  
value) - iterate over it and display them.

IMHO errors\_for outside is for scaffolding uses only if you use another  
language then english.

---

<div class="post-metadata">

**Author:** ![danny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@danny](https://www.ruby-forum.com/u/danny)\
**Post date:** [April 11, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/localized-active-record-errors/91711/3 "2007-04-11T20:35:17Z")

</div>

Florian G. wrote:

> danny wrote:
> 
> > Hello people,
> > 
> > I was wondering how to make the errors that an active record model  
> > throws during form validation apear in dutch. the message is easily  
> > adaptable, but the subject of the error still shows up in english.
> > 
> > thanks!
> 
> Quick fix: don’t use the default errors\_for - helper but implement your  
> own. It’s done in 2 seconds and is a no-brainer. I usually handle this  
> as a partial instead.
> 
> @model.error holds the error collection (attribute as key, errors as  
> value) - iterate over it and display them.
> 
> IMHO errors\_for outside is for scaffolding uses only if you use another  
> language then english.

thanks for the quick response, I have created the partial now (found out  
that it had to be @model.errors)
