From: Michael campbell Date: 2004-01-30T09:42:07+09:00 Subject: Re: amrita and checkboxes - solved Michael campbell wrote: > How does one control whether or not a checkbox is "checked" using > amrita? I'm an idiot, apologies for the earlier message. I had failed in my test script to do the second t.expand() call... Apologies again to all. This works as expected: ### require 'amrita/template' include Amrita t = TemplateText.new <<-html html data = { :form => a(:checked => "ON") } puts "1" t.expand(STDOUT, data) # prints puts "2" data = { :form => a(:checked=>nil) } t.expand(STDOUT, data) # prints