Rails has got some nice default form options available in the FormHelper , however the check_box still leaves a little to be desired. It's great if you have one or two disparate elements, but what about when you want people to choose from a list of items like the following? Choose your favorite fruits. Apple Orange Banana Code <form> Choose your favorite fruits. <div><input value="apple" id="apple" name="fruit" type="checkbox"><label for="apple">Apple</label></div> <div><input value="orange" id="orange" name="fruit" type="checkbox"><label for="orange">Orange</label></div> <div><input value="banana" id="banana" name="fruit" type="checkbox"><label for="banana">Banana</label></div> </form> In the example above, they all have the name fru...
This is my technical blog where I note things I have developed that I want to remember.