Assign one object to another object

Assign one object (e.g. Taxonomy, or TermsAndConditions) to another object (e.g. Page). The two objects should be connected in many_many (or belongs_many_many) relationship, else an exception will be thrown out.
Coding conventions - use camelcase for local variables