Has Many Relationship with checkboxes - Setting a Default relationship #893

Closed
Rockit opened this Issue Oct 23, 2012 · 2 comments

Projects

None yet

2 participants

Rockit commented Oct 23, 2012

Is there a why to do this or is it not available?

Owner

I don't understand your question, but I'll take two guesses. If you want to set which choices are available in the checkboxes, you can so this with the :collection option. If you want to pre-select which choices are checked, you can do this to the model itself as part of initializarion in the controller.

Rockit commented Oct 24, 2012

Hi Justin

Thanks for the reply.

Yip wanted the preselected option you mentioned.

Thanks will look into it.

Kind Regards

Clayton

From: Justin French [mailto:notifications@github.com]
Sent: Tuesday, October 23, 2012 8:39 PM
To: justinfrench/formtastic
Cc: Rockit
Subject: Re: [formtastic] Has Many Relationship with checkboxes - Setting a Default relationship (#893)

I don't understand your question, but I'll take two guesses. If you want to set which choices are available in the checkboxes, you can so this with the :collection option. If you want to pre-select which choices are checked, you can do this to the model itself as part of initializarion in the controller.


Reply to this email directly or view it on GitHub #893 (comment) .

https://github.com/notifications/beacon/_mOvGpZgvjXTIy2VAlp-euf6Mh6Inyfrhn2ago1ZBdkxxXEI1Lr7GzQhmOgytClH.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment