form.check_box and attribute_fu

0 views
Skip to first unread message

Rafe Colburn

unread,
Jun 10, 2008, 2:44:05 PM6/10/08
to attribute_fu
I'm trying to create a group of checkboxes on a form that's managed
using attribute_fu. It works fine with yes/no type checkboxes (with a
checkbox that has a value of 1 and a hidden field with a value of 0),
but I want to make a group of checkboxes. Usually you have to use
check_box_tag for that (it seems), but I don't know of a way to set
the field name properly unless you use the regular form helper with
attribute_fu.

Anyone ever done this and have any pointers?

Thanks,
Rafe

James Golick

unread,
Jun 10, 2008, 5:46:01 PM6/10/08
to attrib...@googlegroups.com
I need to create something to the effect of FormBuilder#name_for(field) which would allow you to access the naming in a_f

it's on my TODO list :)
Reply all
Reply to author
Forward
0 new messages