I am newish to rails and I am having an issue with inserting a date. The
field is type date in schema.db (and the migration). When I instantiate
the model class (*.new()) I receive the following error.
value_to_integer': undefined methodto_i’ for Sun, 09 Apr 744389:Date
Database is postgresql 9.2
The object is a Date object and I’ve tried using the object as the
parameter, also I’ve tried .to_s and have received the same error.
On the object if I call .class “Date” is the result. The error means
there is no to_i method on my object, Date. What object type should I be
using for the date that ActiveRecord will support?
I am using a Date object because that is what roo is returning dates as.
Roo is used for processing Excel data (for those who never used it).
Any help would be great!