Fixed a mistake in collection check boxes section of README file.

This commit is contained in:
tundrax 2010-09-10 12:11:03 +08:00 committed by Carlos Antonio da Silva
parent dae88c72c1
commit 233be14202
1 changed files with 1 additions and 1 deletions

View File

@ -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):
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
<input name="user[options][]" type="hidden" value="" />