You can also set the format for your locale which active_scaffold will use
for all date and time attributes unless overridden with a field override.
For example,
en:
date:
formats:
default: "%m/%d/%Y"
time:
formats:
default: "%m/%d/%Y %I:%M %p"
On Sun, Jan 31, 2010 at 9:26 AM, Soren <[email protected]> wrote:
>
> You need a field override like described here:
>
> http://wiki.github.com/activescaffold/active_scaffold/field-overrides
>
> Check the Date and DateTime classes for the various formatting methods
> available.
>
> /S
>
> On Jan 31, 4:13 am, ruinen <[email protected]> wrote:
> > Hopefully an easy question, but I have had a good hunt around and
> > can't work it out.
> >
> > In the list views the dates are appearing as 2010-12-01(yyyy-mm-dd)
> > and I want them as 01-Jan-2010. Does anybody know how to do this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<activescaffold%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.