Every once in a while I get bit when hand crafting a checkbox input (instead of using helpers). When no value attribute is supplied some browser send "on" as the default value, but this isn''t one of the string values that is correctly cast to true. I vaguely recall this being a rejected patch in the past, but couldn''t locate it. If I''m imagining the rejection would this be an acceptable addition? Rails 2.x branch or just 3? -Trek -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Could you please point out to the ticket that was rejected? On 27 ก.พ. 2553, at 2:43, Trek wrote:> Every once in a while I get bit when hand crafting a checkbox input > (instead of using helpers). When no value attribute is supplied some > browser send "on" as the default value, but this isn''t one of the > string values that is correctly cast to true. > > I vaguely recall this being a rejected patch in the past, but couldn''t > locate it. If I''m imagining the rejection would this be an acceptable > addition? Rails 2.x branch or just 3? > > -Trek > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >
As I mentioned, I only recall seeing it from quite some time back. Have been unable to relocate it. 2010/2/26 Prem Sichanugrist <sikandsak@gmail.com>:> Could you please point out to the ticket that was rejected? > > On 27 ก.พ. 2553, at 2:43, Trek wrote: > >> Every once in a while I get bit when hand crafting a checkbox input >> (instead of using helpers). When no value attribute is supplied some >> browser send "on" as the default value, but this isn''t one of the >> string values that is correctly cast to true. >> >> I vaguely recall this being a rejected patch in the past, but couldn''t >> locate it. If I''m imagining the rejection would this be an acceptable >> addition? Rails 2.x branch or just 3? >> >> -Trek >> >> -- >> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. >> > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.