Show booleans in Active Admin as 'Yes' and 'No'

activeadmin, internationalization, ruby-on-rails

Solution

Here, this works, it gives you a tick and cross, but appears to be easy to modify.

https://gist.github.com/2574969

You'll need to restart your rails server for this to work, as it modifies the active_admin.rb initialiser.

Of course it creates a class, which is what you want to avoid, but in the absence of anything else, this does work.

Problem

How can I make active admin to show "Yes" and "No" instead of "true" and "false". I tried to change in english locale but that doesn't work. I'm thinking of monkeypatching boolean classes, but this seems quite ugly. Is there anything else I can do?

Original source