And it turns out I was being dumb and calling Date.new() instead of
Date.today() - sorry. :)
The other problem I was having was converting stringified dates to
DateTime()'s before insertion. I thought I saw a piece of code to do
that, but couldn't get it to work. I ended up having to add the
following to my model:
def published_on=( date )
if date.is_a?( String )
@attributes['date'] = DateTime.parse( date )
else
@attributes['date'] = date
end
end
I made myself a TODO to look back into this, but in the mean time I
just need to get a proof of concept together.