How do default my check_box_tag to true?

<%= check_box_tag :active, 1, params[:active] == '1' %>

The way it works now is that it saves the history of check or unchecked
with that 1 as the 2nd argument. But it defaults to unchecked. How do i
get it to default to checked. Thanks for your help.

···

--
Posted via http://www.ruby-forum.com/.

This is apparently a Rails question, and this is a general Ruby
list/forum. You should try the Rails one:
http://www.ruby-forum.com/forum/rails

-- Matma Rex