Skip to content

Instantly share code, notes, and snippets.

@lafeber
Last active December 26, 2015 23:39
Show Gist options
  • Save lafeber/7231809 to your computer and use it in GitHub Desktop.
Save lafeber/7231809 to your computer and use it in GitHub Desktop.
# attributes.yml:
nl: &attributes
article:
title: Titel
short_title: Meta titel
# active_record.yml:
nl:
activerecord:
models:
article:
one: Artikel
other: Artikelen
attributes:
<<: *attributes
# This way, it works with simple form, and you can also call t('article.title') anywhere.
# And you don't have to use Article.human_attribute_name('title')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment