Adate expected, got String

I have the models “announcement” and “adate” where “announcement”
belongs_to :adate and adate :has_many announcements. When I try
submitting a form using the name announcement[adate] it des not work -
gives me Adate expected, got String. What is the problem?

My database schema is table announcements has the columns id, text, and

Thank you!


A general description of a problem is not enough for us to solve it.

You should post the code, what you think it should do, what it
actually does, and the complete error message including an indication
of which line caused the error.

Pete Y.