RubyFlow The Ruby and Rails community linklog

human_attribute for easy rails attribute i18n

I just launched human_attribute gem for rails attribute translation.

In YAML:

en activerecord attribute_values: user: state: new: Just registered ok: Active

then:

user = User.first user.state # => “new” user.human_value(:state) # => “Just registered”

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in