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