Thanks for the code, it helps me see what you are trying to accomplish. In the future, though, please try to use
code tags when posting code. It makes the code more readable.
It looks like you just need to select all the checkbox fields from the database and loop through them. Maybe something like:
- <%CheckboxModel.find(:all).each do |cb|%>
-
<label for="<%=cb.parameter%>"><%=cb.parameter%>:</label>
-
<%= form.check_box cb.parameter %>
-
<%end%>
You could do this in either the view or controller, so you may need to do it slightly differently. Also, my experience is with Rails 1.2.3, so if you are using something different you may need to modify the code a little.