Created
January 26, 2015 20:29
-
-
Save uptownhr/33825b6b448eff0d25db to your computer and use it in GitHub Desktop.
wrapping checkbox items with forme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use tag_wrapper | |
<ul> | |
<%= f.input :accounts, :as=>:checkbox, :tag_wrapper => :li %> | |
</ul> | |
# output | |
<ul> | |
<span class="label">Accounts</span><li><label class="option"><input checked="checked" id="user_account_pks_1" name="user[account_pks][]" type="checkbox" value="1"> TestAccount</label></li><li><label class="option"><input checked="checked" id="user_account_pks_2" name="user[account_pks][]" type="checkbox" value="2"> new user name</label></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment