# Simple backend and nested models

**URL:** <https://www.ruby-forum.com/t/simple-backend-and-nested-models/184592>\
**Category:** Rails I18n\
**Created:** [March 4, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/simple-backend-and-nested-models/184592 "2010-03-04T23:59:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cedric](https://www.ruby-forum.com/u/cedric)\
**Post date:** [March 4, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/simple-backend-and-nested-models/184592/1 "2010-03-04T23:59:15Z")

</div>

Hi,

I’ve been looking around a fair bit on Google, but haven’t been able  
to answer my own question. I have a form that includes an association  
that uses nested\_attributes. When using the label method that uses  
something like :feature\_attributes – where should one be putting the  
feature model attribute translations. I’ve tried putting them in the  
standard place for models (e.g.  
activerecord.attributes.feature.published\_at) and I’ve tried nesting  
them under the model attributes that it’s associated with. Can anybody  
shed some light on this? I am looking at what will be Rails 2.3.6.

Thanks,  
Cedric

---

<div class="post-metadata">

**Author:** ![cedric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cedric](https://www.ruby-forum.com/u/cedric)\
**Post date:** [March 5, 2010, 9:38am UTC](https://www.ruby-forum.com/t/simple-backend-and-nested-models/184592/2 "2010-03-05T09:38:06Z")

</div>

Try to do that in the en.yml file

en:  
activerecord:  
attributes:  
feature:  
your\_first\_attribute: “Your first attribute”

More info here [1]

[1]

> **[Rails Internationalization (I18n) API — Ruby on Rails Guides](https://guides.rubyonrails.org/i18n.html#translations-for-active-record-models)**
>
> Rails Internationalization (I18n) APIThe Ruby I18n (shorthand for internationalization) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single...

2010/3/4 cedric [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> shed some light on this? I am looking at what will be Rails 2.3.6.  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rails-i18n?hl=en](http://groups.google.com/group/rails-i18n?hl=en).

–  
Experiencia es lo que obtienes, cuando no obtienes lo que quieres.
