Fixed a mistake in collection check boxes section of README file.
This commit is contained in:
parent
dae88c72c1
commit
233be14202
|
@ -212,7 +212,7 @@ Creates a collection of radio inputs with labels associated (same API as collect
|
||||||
Creates a collection of check boxes with labels associated (same API as collection_select):
|
Creates a collection of check boxes with labels associated (same API as collection_select):
|
||||||
|
|
||||||
form_for @user do |f|
|
form_for @user do |f|
|
||||||
f.collection_check_box :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
|
f.collection_check_boxes :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
|
||||||
end
|
end
|
||||||
|
|
||||||
<input name="user[options][]" type="hidden" value="" />
|
<input name="user[options][]" type="hidden" value="" />
|
||||||
|
|
Loading…
Reference in New Issue