Forum: Ruby on Rails datetime to_s(:option) not working

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fcf6328e679123eb81f8576eae5e8f74?d=identicon&s=25 (Guest)
on 2009-05-15 07:25
(Received via mailing list)
I added a migration to add a datetime object column to my database. It
all works great, and I can edit it and everything using the
select_date helper for forms.

BUT when I try to format the date using gallery.gallery_date.to_s
(:short) I get an error:

"wrong number of arguments (1 for 0)"

How do I do this?
Fce8e97a4f558dcdd7d6a64f02c493a6?d=identicon&s=25 Vladimir Rybas (Guest)
on 2009-05-15 10:11
(Received via mailing list)
Shouldn't it be

On May 15, 12:24 pm, "" <>
This topic is locked and can not be replied to.