I have a page with 10 checkboxes that translate into true/false based on the user selection at the moment my strong param method looks like
def checkbox_params
params.require(:"{}").permit(:param1, :param2, :param3,...)
end
based on this I iterate over each value and check if it is true/false before I commit the information to my database. If in the future I will add more params this list will become big and I will have a long for iteration. Is there a better practice to pass this information?
Thank you