KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to generate check box with custom html attributes (to use UJS later). Here is my view code <%= check_box_tag "data-toggle-completed" => "" %> it gives me <input id="__data-toggle-completed______" name="{"data-toggle-completed"=>""}" type="checkbox" value="1"> But I wanted <input type="checkbox" data-toggle-completed=""> How can I achieve this?
Tags (comma-separated)
Save Edits
Cancel