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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.