Forms + Validation + MANYMANY

If I have three MySQL tables: Post PostCategory Category whereby Post and Category have a MANY to MANY relationship, how would I incorporate ability to select multiple categories from the Post form? and then validate the form and save the data into Post and the appropiate data into PostCategory?

Furthermore, ive already set up the the relationships in the active records model.


Did you manage to make it work ???

I need to validate the category select too.


Yes its good question i want same .

can any body help us ?

I have the same question here!

This thread might help.