On Viernes, 19 de Marzo de 2010 05:18:36 Hernan Astudillo escribió: > Beautiful. Clean. Simple. > This should be somewhere in the wiki.
Using format with a symbol is documented, rails locale format is documented in the project web: rails-i18n.org. > > > On Mon, Feb 1, 2010 at 6:12 AM, Sergio Cambra .:: entreCables S.L. ::. < > > [email protected]> wrote: > > On Domingo, 31 de Enero de 2010 18:30:12 Nick Rogers escribió: > > > 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" > > > > And you can add a new format and set the format to use in options: > > config.columns[:date_column].options[:format] = :custom > > > > en: > > date: > > formats: > > custom: > > > > Also, you can set the format string in options: > > config.columns[:date_column].options[:format] = "%d-%b-%Y" > > > > > 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%2Bunsubscr > > > >[email protected]> > > > > <activescaffold%2Bunsubscribe@ > > > > > >googlegroups.com> . > > > > For more options, visit this group at > > > > http://groups.google.com/group/activescaffold?hl=en. > > > > -- > > Sergio Cambra .:: entreCables S.L. ::. > > Mariana Pineda 23, 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > > > -- > > 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%2Bunsubscribe@ > >googlegroups.com> . > > For more options, visit this group at > > http://groups.google.com/group/activescaffold?hl=en. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
