How to Save Multiple Checkbox Values to a Database in Rails

Imagine you have a form in your Rails app which is backed by an ActiveRecord model. In this form there are a bunch of checkboxes, the values of which you want to persist to your database. How do you go about handling this scenario?

The answer, my friend, is over on SitePoint Ruby where this article ended up getting published.

Read the complete article on SitePoint

I'm on Twitter:

Categories