Skip to content

Instantly share code, notes, and snippets.

@ishe-ua ishe-ua/I18n - boolean
Last active Aug 18, 2016

Embed
What would you like to do?
en:
"true": "yes"
"false": "no"
erb:
<%= t account.send_notifications?.to_s %>
notes:
1. "" in yaml is necessarily (all of them)
2. to_s - too!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.