{"action":"closed","issue":{"url":"https://api.github.com/repos/joecorcoran/judge/issues/57","labels_url":"https://api.github.com/repos/joecorcoran/judge/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/joecorcoran/judge/issues/57/comments","events_url":"https://api.github.com/repos/joecorcoran/judge/issues/57/events","html_url":"https://github.com/joecorcoran/judge/issues/57","id":76585699,"number":57,"title":"SimpleForm Radio Buttons Not Validate","user":{"login":"danieldocki","id":10542,"avatar_url":"https://avatars.githubusercontent.com/u/10542?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldocki","html_url":"https://github.com/danieldocki","followers_url":"https://api.github.com/users/danieldocki/followers","following_url":"https://api.github.com/users/danieldocki/following{/other_user}","gists_url":"https://api.github.com/users/danieldocki/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldocki/subscriptions","organizations_url":"https://api.github.com/users/danieldocki/orgs","repos_url":"https://api.github.com/users/danieldocki/repos","events_url":"https://api.github.com/users/danieldocki/events{/privacy}","received_events_url":"https://api.github.com/users/danieldocki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T04:18:50Z","updated_at":"2015-05-16T06:21:17Z","closed_at":"2015-05-16T06:21:17Z","body":"Hi Guys,\r\n\r\nI'm using SimpleForm. Judge return valid, but radio is not selected.\r\n\r\nI suspect he returns valid because the tag 'value' has value, which is 'male' and 'female', have any solutions?\r\n\r\n```ruby\r\n    <%= f.input :gender, required: true, collection: [[:male, t('male')],\r\n      [:female, t('female')]], label_method: :last, value_method: :first,\r\n      as: :radio_buttons, item_wrapper_class: 'radio-inline', validate: true %>\r\n```\r\n\r\n```html\r\n<div class=\"form-group radio_buttons required user_gender\">\r\n  <label class=\"radio_buttons required control-label\">\r\n    <abbr title=\"obrigatório\">*</abbr> sexo\r\n  </label>\r\n\r\n  <span class=\"radio radio-inline radio__label\">\r\n    <input class=\"radio_buttons required form-control\" \r\n      data-validate=\"[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;não pode ficar em branco&quot;}}]\"\r\n      data-klass=\"User\" type=\"radio\" value=\"male\" name=\"user[gender]\" id=\"user_gender_male\">\r\n    <label class=\"collection_radio_buttons\" for=\"user_gender_male\">papai</label>\r\n  </span>\r\n\r\n  <span class=\"radio radio-inline radio__label\">\r\n    <input class=\"radio_buttons required form-control\"\r\n      data-validate=\"[{&quot;kind&quot;:&quot;presence&quot;,&quot;options&quot;:{},&quot;messages&quot;:{&quot;blank&quot;:&quot;não pode ficar em branco&quot;}}]\"\r\n      data-klass=\"User\" type=\"radio\" value=\"female\" name=\"user[gender]\" id=\"user_gender_female\">\r\n    <label class=\"collection_radio_buttons\" for=\"user_gender_female\">mamãe</label>\r\n  </span>\r\n</div>\r\n```\r\n\r\nThanks :)"}}