{"action":"closed","number":1279,"pull_request":{"url":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279","id":39267717,"html_url":"https://github.com/plataformatec/simple_form/pull/1279","diff_url":"https://github.com/plataformatec/simple_form/pull/1279.diff","patch_url":"https://github.com/plataformatec/simple_form/pull/1279.patch","issue_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1279","number":1279,"state":"closed","locked":false,"title":"Add example on how to set html attributes on specific collection items","user":{"login":"obfuscoder","id":1779230,"avatar_url":"https://avatars.githubusercontent.com/u/1779230?v=3","gravatar_id":"","url":"https://api.github.com/users/obfuscoder","html_url":"https://github.com/obfuscoder","followers_url":"https://api.github.com/users/obfuscoder/followers","following_url":"https://api.github.com/users/obfuscoder/following{/other_user}","gists_url":"https://api.github.com/users/obfuscoder/gists{/gist_id}","starred_url":"https://api.github.com/users/obfuscoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obfuscoder/subscriptions","organizations_url":"https://api.github.com/users/obfuscoder/orgs","repos_url":"https://api.github.com/users/obfuscoder/repos","events_url":"https://api.github.com/users/obfuscoder/events{/privacy}","received_events_url":"https://api.github.com/users/obfuscoder/received_events","type":"User","site_admin":false},"body":"When searching the internet I came upon \"helpful\" hints like that one:\r\n\r\nhttp://stackoverflow.com/questions/17554748/how-do-i-add-html-attributes-to-select-options-with-simple-form-rails\r\n\r\nI took quite some time before I figured that this was not the right solution. To not let others fall into this trap, I propose to add this to the documentation.","created_at":"2015-07-06T13:32:21Z","updated_at":"2015-10-08T00:52:03Z","closed_at":"2015-10-08T00:52:03Z","merged_at":null,"merge_commit_sha":"cd3bfe271883eac4e7cc25802cf72a1b891b2833","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279/commits","review_comments_url":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279/comments","review_comment_url":"https://api.github.com/repos/plataformatec/simple_form/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1279/comments","statuses_url":"https://api.github.com/repos/plataformatec/simple_form/statuses/59615e5250fe040e805d94beaa7d60899cbae964","head":{"label":"obfuscoder:master","ref":"master","sha":"59615e5250fe040e805d94beaa7d60899cbae964","user":{"login":"obfuscoder","id":1779230,"avatar_url":"https://avatars.githubusercontent.com/u/1779230?v=3","gravatar_id":"","url":"https://api.github.com/users/obfuscoder","html_url":"https://github.com/obfuscoder","followers_url":"https://api.github.com/users/obfuscoder/followers","following_url":"https://api.github.com/users/obfuscoder/following{/other_user}","gists_url":"https://api.github.com/users/obfuscoder/gists{/gist_id}","starred_url":"https://api.github.com/users/obfuscoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obfuscoder/subscriptions","organizations_url":"https://api.github.com/users/obfuscoder/orgs","repos_url":"https://api.github.com/users/obfuscoder/repos","events_url":"https://api.github.com/users/obfuscoder/events{/privacy}","received_events_url":"https://api.github.com/users/obfuscoder/received_events","type":"User","site_admin":false},"repo":{"id":38619534,"name":"simple_form","full_name":"obfuscoder/simple_form","owner":{"login":"obfuscoder","id":1779230,"avatar_url":"https://avatars.githubusercontent.com/u/1779230?v=3","gravatar_id":"","url":"https://api.github.com/users/obfuscoder","html_url":"https://github.com/obfuscoder","followers_url":"https://api.github.com/users/obfuscoder/followers","following_url":"https://api.github.com/users/obfuscoder/following{/other_user}","gists_url":"https://api.github.com/users/obfuscoder/gists{/gist_id}","starred_url":"https://api.github.com/users/obfuscoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obfuscoder/subscriptions","organizations_url":"https://api.github.com/users/obfuscoder/orgs","repos_url":"https://api.github.com/users/obfuscoder/repos","events_url":"https://api.github.com/users/obfuscoder/events{/privacy}","received_events_url":"https://api.github.com/users/obfuscoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/obfuscoder/simple_form","description":"Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.","fork":true,"url":"https://api.github.com/repos/obfuscoder/simple_form","forks_url":"https://api.github.com/repos/obfuscoder/simple_form/forks","keys_url":"https://api.github.com/repos/obfuscoder/simple_form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obfuscoder/simple_form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obfuscoder/simple_form/teams","hooks_url":"https://api.github.com/repos/obfuscoder/simple_form/hooks","issue_events_url":"https://api.github.com/repos/obfuscoder/simple_form/issues/events{/number}","events_url":"https://api.github.com/repos/obfuscoder/simple_form/events","assignees_url":"https://api.github.com/repos/obfuscoder/simple_form/assignees{/user}","branches_url":"https://api.github.com/repos/obfuscoder/simple_form/branches{/branch}","tags_url":"https://api.github.com/repos/obfuscoder/simple_form/tags","blobs_url":"https://api.github.com/repos/obfuscoder/simple_form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obfuscoder/simple_form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obfuscoder/simple_form/git/refs{/sha}","trees_url":"https://api.github.com/repos/obfuscoder/simple_form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obfuscoder/simple_form/statuses/{sha}","languages_url":"https://api.github.com/repos/obfuscoder/simple_form/languages","stargazers_url":"https://api.github.com/repos/obfuscoder/simple_form/stargazers","contributors_url":"https://api.github.com/repos/obfuscoder/simple_form/contributors","subscribers_url":"https://api.github.com/repos/obfuscoder/simple_form/subscribers","subscription_url":"https://api.github.com/repos/obfuscoder/simple_form/subscription","commits_url":"https://api.github.com/repos/obfuscoder/simple_form/commits{/sha}","git_commits_url":"https://api.github.com/repos/obfuscoder/simple_form/git/commits{/sha}","comments_url":"https://api.github.com/repos/obfuscoder/simple_form/comments{/number}","issue_comment_url":"https://api.github.com/repos/obfuscoder/simple_form/issues/comments{/number}","contents_url":"https://api.github.com/repos/obfuscoder/simple_form/contents/{+path}","compare_url":"https://api.github.com/repos/obfuscoder/simple_form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obfuscoder/simple_form/merges","archive_url":"https://api.github.com/repos/obfuscoder/simple_form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obfuscoder/simple_form/downloads","issues_url":"https://api.github.com/repos/obfuscoder/simple_form/issues{/number}","pulls_url":"https://api.github.com/repos/obfuscoder/simple_form/pulls{/number}","milestones_url":"https://api.github.com/repos/obfuscoder/simple_form/milestones{/number}","notifications_url":"https://api.github.com/repos/obfuscoder/simple_form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obfuscoder/simple_form/labels{/name}","releases_url":"https://api.github.com/repos/obfuscoder/simple_form/releases{/id}","created_at":"2015-07-06T13:09:23Z","updated_at":"2015-07-06T13:09:24Z","pushed_at":"2015-07-06T13:29:10Z","git_url":"git://github.com/obfuscoder/simple_form.git","ssh_url":"git@github.com:obfuscoder/simple_form.git","clone_url":"https://github.com/obfuscoder/simple_form.git","svn_url":"https://github.com/obfuscoder/simple_form","homepage":"http://blog.plataformatec.com.br/tag/simple_form","size":2948,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"plataformatec:master","ref":"master","sha":"2e808f0bcf988a402e5154836dcd3339fee6bbe1","user":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"repo":{"id":451035,"name":"simple_form","full_name":"plataformatec/simple_form","owner":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plataformatec/simple_form","description":"Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.","fork":false,"url":"https://api.github.com/repos/plataformatec/simple_form","forks_url":"https://api.github.com/repos/plataformatec/simple_form/forks","keys_url":"https://api.github.com/repos/plataformatec/simple_form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plataformatec/simple_form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plataformatec/simple_form/teams","hooks_url":"https://api.github.com/repos/plataformatec/simple_form/hooks","issue_events_url":"https://api.github.com/repos/plataformatec/simple_form/issues/events{/number}","events_url":"https://api.github.com/repos/plataformatec/simple_form/events","assignees_url":"https://api.github.com/repos/plataformatec/simple_form/assignees{/user}","branches_url":"https://api.github.com/repos/plataformatec/simple_form/branches{/branch}","tags_url":"https://api.github.com/repos/plataformatec/simple_form/tags","blobs_url":"https://api.github.com/repos/plataformatec/simple_form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plataformatec/simple_form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plataformatec/simple_form/git/refs{/sha}","trees_url":"https://api.github.com/repos/plataformatec/simple_form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plataformatec/simple_form/statuses/{sha}","languages_url":"https://api.github.com/repos/plataformatec/simple_form/languages","stargazers_url":"https://api.github.com/repos/plataformatec/simple_form/stargazers","contributors_url":"https://api.github.com/repos/plataformatec/simple_form/contributors","subscribers_url":"https://api.github.com/repos/plataformatec/simple_form/subscribers","subscription_url":"https://api.github.com/repos/plataformatec/simple_form/subscription","commits_url":"https://api.github.com/repos/plataformatec/simple_form/commits{/sha}","git_commits_url":"https://api.github.com/repos/plataformatec/simple_form/git/commits{/sha}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/comments{/number}","issue_comment_url":"https://api.github.com/repos/plataformatec/simple_form/issues/comments{/number}","contents_url":"https://api.github.com/repos/plataformatec/simple_form/contents/{+path}","compare_url":"https://api.github.com/repos/plataformatec/simple_form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plataformatec/simple_form/merges","archive_url":"https://api.github.com/repos/plataformatec/simple_form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plataformatec/simple_form/downloads","issues_url":"https://api.github.com/repos/plataformatec/simple_form/issues{/number}","pulls_url":"https://api.github.com/repos/plataformatec/simple_form/pulls{/number}","milestones_url":"https://api.github.com/repos/plataformatec/simple_form/milestones{/number}","notifications_url":"https://api.github.com/repos/plataformatec/simple_form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plataformatec/simple_form/labels{/name}","releases_url":"https://api.github.com/repos/plataformatec/simple_form/releases{/id}","created_at":"2009-12-28T14:23:48Z","updated_at":"2015-10-08T00:17:29Z","pushed_at":"2015-10-08T00:42:34Z","git_url":"git://github.com/plataformatec/simple_form.git","ssh_url":"git@github.com:plataformatec/simple_form.git","clone_url":"https://github.com/plataformatec/simple_form.git","svn_url":"https://github.com/plataformatec/simple_form","homepage":"http://blog.plataformatec.com.br/tag/simple_form","size":6202,"stargazers_count":5545,"watchers_count":5545,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":898,"mirror_url":null,"open_issues_count":32,"forks":898,"open_issues":32,"watchers":5545,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279"},"html":{"href":"https://github.com/plataformatec/simple_form/pull/1279"},"issue":{"href":"https://api.github.com/repos/plataformatec/simple_form/issues/1279"},"comments":{"href":"https://api.github.com/repos/plataformatec/simple_form/issues/1279/comments"},"review_comments":{"href":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279/comments"},"review_comment":{"href":"https://api.github.com/repos/plataformatec/simple_form/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plataformatec/simple_form/pulls/1279/commits"},"statuses":{"href":"https://api.github.com/repos/plataformatec/simple_form/statuses/59615e5250fe040e805d94beaa7d60899cbae964"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":14,"deletions":1,"changed_files":1}}