Im sorry if this is easily found in the manual, or have been discussed many times before in the forum.
I have read the manual over and over many times, and i have tried searching the forum with its search, and even google site search, but i just cant find the solution to my problem.
Here is my problem,
I have three tables:
USERS(name)
CITIES(id,city)
CITIES_USERS(id,city_id,user_id)
On my form, in my view for creating a new user, there is a textfield that asks for favourite city (more cities can be added later on hence many-to-many rel).
But when I submit the form, the error message says "The City relationship is required."
Now, in my model 'USER' I have rules that 'favorite city' (id city) is a required field, I also have the $has_many = array("city") and $has_many = array("user") variables set up properly in both models.
Why cant I get past the validation?