{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3867","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3867/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3867/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3867/events","html_url":"https://github.com/activeadmin/activeadmin/issues/3867","id":64866720,"number":3867,"title":"AA thinks \"false\" means \"empty\" in show view","user":{"login":"dpmccabe","id":527578,"avatar_url":"https://avatars.githubusercontent.com/u/527578?v=3","gravatar_id":"","url":"https://api.github.com/users/dpmccabe","html_url":"https://github.com/dpmccabe","followers_url":"https://api.github.com/users/dpmccabe/followers","following_url":"https://api.github.com/users/dpmccabe/following{/other_user}","gists_url":"https://api.github.com/users/dpmccabe/gists{/gist_id}","starred_url":"https://api.github.com/users/dpmccabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpmccabe/subscriptions","organizations_url":"https://api.github.com/users/dpmccabe/orgs","repos_url":"https://api.github.com/users/dpmccabe/repos","events_url":"https://api.github.com/users/dpmccabe/events{/privacy}","received_events_url":"https://api.github.com/users/dpmccabe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T22:55:04Z","updated_at":"2015-04-08T06:26:55Z","closed_at":null,"body":"If you have a boolean attribute on a resource and have a row for that attribute in your `show` view, AA will display \"true\" for `true` and \"empty\" for `false`. Try the following:\r\n\r\n    show do\r\n      attributes_table do\r\n        row :id\r\n        row :true do |a|\r\n          true\r\n        end\r\n        row :false do |a|\r\n          false\r\n        end\r\n      end\r\n    end\r\n\r\nThis yields the following:\r\n\r\n![screen shot 2015-03-27 at 5 50 07 pm](https://cloud.githubusercontent.com/assets/527578/6878314/034092f6-d4aa-11e4-8b2f-804906192ae3.png)\r\n\r\nThis is using PostgreSQL. I'm not sure if the bug exists in other DBs.\r\n\r\nIt's not a problem on the `index` view, though, where `true` and `false` are correctly interpreted as `status_tag('yes')` and `status_tag('no')`, respectively. I think `status_tag` should also be the default behavior in show, but at the very least it shouldn't be confusing `false` with `empty`/`nil`, which are certainly different things in Ruby, falsiness aside."},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/90818940","html_url":"https://github.com/activeadmin/activeadmin/issues/3867#issuecomment-90818940","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3867","id":90818940,"user":{"login":"bsvin33t","id":1446361,"avatar_url":"https://avatars.githubusercontent.com/u/1446361?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvin33t","html_url":"https://github.com/bsvin33t","followers_url":"https://api.github.com/users/bsvin33t/followers","following_url":"https://api.github.com/users/bsvin33t/following{/other_user}","gists_url":"https://api.github.com/users/bsvin33t/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvin33t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvin33t/subscriptions","organizations_url":"https://api.github.com/users/bsvin33t/orgs","repos_url":"https://api.github.com/users/bsvin33t/repos","events_url":"https://api.github.com/users/bsvin33t/events{/privacy}","received_events_url":"https://api.github.com/users/bsvin33t/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T06:26:54Z","updated_at":"2015-04-08T06:26:54Z","body":"Hi @timoschilling I have created a PR for this bug in https://github.com/activeadmin/activeadmin/pull/3882"}}