I am using HABTM checkboxes as described here:
http://railscasts.com/episodes/17-habtm-checkboxes
Problem is not all categories are available for a project, but using this method a user can inspect the code in their browser, and change the category ids before submitting.
How can I prevent this exploit? the only option I see is to brute force loop through all category ids while comparing them to a list of valid category ids, and reject those that don't match.
Thanks