Adate expected, got String


#1

Hello,
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
adate.

Thank you!


#2

Steven,

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.
http://notahat.com/