{"issue":{"created_at":"2011-08-29T10:31:11Z","state":"closed","updated_at":"2011-11-28T17:48:40Z","user":{"gravatar_id":"8085138938c34ae1af140bfc91f2fe56","id":10766,"url":"https://api.github.com/users/morgoth","avatar_url":"https://secure.gravatar.com/avatar/8085138938c34ae1af140bfc91f2fe56?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"morgoth"},"comments":2,"body":"As rails docs says: https://github.com/rails/rails/blob/master/actionpack/lib/action_view/helpers/form_helper.rb#L651\r\n\r\nit is possible to pass block to `label` method.\r\nOutput however is incorrect (example from documentation):\r\n\r\n```\r\n<label for=\"post_terms\">{\"for\"=&gt;\"post_terms\"}</label>\r\n```\r\n\r\nHacks to make it work are described at http://apidock.com/rails/ActionView/Helpers/FormHelper/label#1122-Unusual-block-calling\r\n\r\nThis syntax however is little messy.\r\n\r\n","assignee":null,"id":1508187,"number":2732,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"label with block incorrect output","closed_at":"2011-11-28T17:48:40Z","html_url":"https://github.com/rails/rails/issues/2732","url":"https://api.github.com/repos/rails/rails/issues/2732","milestone":null},"action":"created","comment":{"created_at":"2011-11-28T17:48:40Z","updated_at":"2011-11-28T17:48:40Z","user":{"gravatar_id":"8085138938c34ae1af140bfc91f2fe56","id":10766,"url":"https://api.github.com/users/morgoth","avatar_url":"https://secure.gravatar.com/avatar/8085138938c34ae1af140bfc91f2fe56?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"morgoth"},"body":"This was fixed by https://github.com/rails/rails/commit/ee8db25e64df7fa5870781957dcdc67fa2a1d8e1\r\nAny chance to cherry pick this to 3-1-stable?","id":2903791,"url":"https://api.github.com/repos/rails/rails/issues/comments/2903791"}}