aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands/console_test.rb
diff options
context:
space:
mode:
authorOlek Janiszewski <olek.janiszewski@gmail.com>2013-03-08 18:07:09 +0100
committerOlek Janiszewski <olek.janiszewski@gmail.com>2013-03-08 19:01:32 +0100
commit8e05a6f6380c6ddbef5a0620b30d19dbca7f2f15 (patch)
tree91d3089df0d9679a0a17c0308a83e27545fe20bb /railties/test/commands/console_test.rb
parentdd1d309fa9c158607a35fee2c18b477728811ad8 (diff)
downloadrails-8e05a6f6380c6ddbef5a0620b30d19dbca7f2f15.tar.gz
rails-8e05a6f6380c6ddbef5a0620b30d19dbca7f2f15.tar.bz2
rails-8e05a6f6380c6ddbef5a0620b30d19dbca7f2f15.zip
Fix incorrectly appended square brackets to a multiple select box
If an explicit name has been given and it already ends with "[]" Before: select(:category, [], {}, multiple: true, name: "post[category][]") # => <select name="post[category][][]" ...> After: select(:category, [], {}, multiple: true, name: "post[category][]") # => <select name="post[category][]" ...>
Diffstat (limited to 'railties/test/commands/console_test.rb')
0 files changed, 0 insertions, 0 deletions