Ticket #7705: ticket7705.patch
| File ticket7705.patch, 0.6 kB (added by crayz, 1 year ago) |
|---|
-
actionpack/lib/action_view/helpers/form_tag_helper.rb
old new 65 65 # 66 66 # A hash of standard HTML options for the tag. 67 67 def text_field_tag(name, value = nil, options = {}) 68 id = (/\w+\[\w+\]/ === name) ? /(\w+)\[(\w+)\]/.match(name)[1..2].join("_") : name 68 69 tag :input, { "type" => "text", "name" => name, "id" => name, "value" => value }.update(options.stringify_keys) 69 70 end 70 71