rubyTrials

A way to keep track of breakthroughs I've made in Ruby and Ruby on Rails.

My Photo
Name:
Location: Cadillac, Michigan, United States

Friday, July 21, 2006

check box tag

Here's a quicky when dealing with the check_box_tag.

syntax:
check_box_tag name, value, checked

code:
<%= check_box_tag :is_hourly, 1, :checked %>

outputs:
<input checked="checked" id="is_hourly" name="is_hourly" type="checkbox" value="1" />