Re: checkbox group / multiple checkboxes

2007-01-23 Thread jyrgen
Grant ! Thanks a ton and sorry for my laziness :-) your code snippet is exactly what i'm looking for. the values are being comma separated and then ready to be stored like in a VARCHAR column, is that right ? What about empty checkboxes ? Well... i'll see and let you know I hope to be able to

Re: checkbox group / multiple checkboxes

2007-01-23 Thread Grant Cox
Wait, so one field can have multiple values? You are going to need to manually process your data in your controller - you can't automatically store multiple values in a single field like that. You will need to serialize / unserialize (or similar) the data for the database - I'd suggest doing thi

checkbox group / multiple checkboxes

2007-01-22 Thread jyrgen
after reading almost all existing posts about this topic, i don't get any further, since they all cover the habtm association. my task is simpler, i'm just dealing with a single model. i'd like to display a field as a checkbox group in this fashion: value 1value 2 < > value 3 how can i