clarifies a bit more what's the issue with check boxes and arrays of parameters

This commit is contained in:
Xavier Noria
2009-03-17 21:01:50 +01:00
parent 485cd69a7b
commit e8501a15a8

View File

@@ -655,7 +655,11 @@ module ActionView
# <% end %>
#
# because parameter name repetition is precisely what Rails seeks to distinguish
# the elements of the array.
# the elements of the array. For each item with a checked check box you
# get an extra ghost item with only that attribute, assigned to "0".
#
# In that case it is preferable to either use +check_box_tag+ or to use
# hashes instead of arrays.
#
# ==== Examples
# # Let's say that @post.validated? is 1: