{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/1257","labels_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1257/comments","events_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1257/events","html_url":"https://github.com/plataformatec/simple_form/issues/1257","id":79021960,"number":1257,"title":"radio buttons readonly when value is false","user":{"login":"equivalent","id":721990,"avatar_url":"https://avatars.githubusercontent.com/u/721990?v=3","gravatar_id":"","url":"https://api.github.com/users/equivalent","html_url":"https://github.com/equivalent","followers_url":"https://api.github.com/users/equivalent/followers","following_url":"https://api.github.com/users/equivalent/following{/other_user}","gists_url":"https://api.github.com/users/equivalent/gists{/gist_id}","starred_url":"https://api.github.com/users/equivalent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equivalent/subscriptions","organizations_url":"https://api.github.com/users/equivalent/orgs","repos_url":"https://api.github.com/users/equivalent/repos","events_url":"https://api.github.com/users/equivalent/events{/privacy}","received_events_url":"https://api.github.com/users/equivalent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-21T14:34:02Z","updated_at":"2015-07-07T08:27:56Z","closed_at":null,"body":"let say I have\r\n\r\n```haml\r\n= simple_form_for @copy_content do |f|\r\n  = f.input :copy_emails, as: :radio_buttons, collection: [['Yes', 'true'], ['No', 'false']]\r\n  = f.submit 'Submit'\r\n```\r\n\r\nthe Yes radio button is fine but the No (false value) radio button has a \"readonly\" property\r\n\r\n(same apply when i have ` [['Yes', true], ['No', false]]` )\r\n\r\n```html\r\n<div class=\"form-group radio_buttons required copy_content_copy_emails\">\r\n<label class=\"radio_buttons required control-label\"><abbr title=\"required\">*</abbr> Copy emails</label>\r\n\r\n<span class=\"radio\">\r\n  <label for=\"copy_content_copy_emails_true\">\r\n     <input class=\"radio_buttons required\" type=\"radio\" value=\"true\" name=\"copy_content[copy_emails]\" id=\"copy_content_copy_emails_true\" />Yes\r\n  </label>\r\n</span>\r\n\r\n<span class=\"radio\">\r\n  <label for=\"copy_content_copy_emails_false\">\r\n    <input class=\"radio_buttons required\" readonly=\"readonly\" type=\"radio\" value=\"false\" name=\"copy_content[copy_emails]\" id=\"copy_content_copy_emails_false\" />No\r\n  </label>\r\n</span>\r\n</div>\r\n```\r\n\r\nis this a bug or a feature?  ( http://www.eq8.eu/bug.png ) ... if a feature, can someone explain to me  why ? \r\n\r\nthx\r\n"},"comment":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/comments/119118227","html_url":"https://github.com/plataformatec/simple_form/issues/1257#issuecomment-119118227","issue_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1257","id":119118227,"user":{"login":"Sylvain","id":38242,"avatar_url":"https://avatars.githubusercontent.com/u/38242?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylvain","html_url":"https://github.com/Sylvain","followers_url":"https://api.github.com/users/Sylvain/followers","following_url":"https://api.github.com/users/Sylvain/following{/other_user}","gists_url":"https://api.github.com/users/Sylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylvain/subscriptions","organizations_url":"https://api.github.com/users/Sylvain/orgs","repos_url":"https://api.github.com/users/Sylvain/repos","events_url":"https://api.github.com/users/Sylvain/events{/privacy}","received_events_url":"https://api.github.com/users/Sylvain/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T08:27:56Z","updated_at":"2015-07-07T08:27:56Z","body":"Hi! \r\n\r\nI have the same problem. Do you know any workaround to allow readonly to be false ? \r\n\r\nKind regards,\r\n\r\nSylvain"}}