Displaying 3 results from an estimated 3 matches for "date_field".
2006 Jul 20
2
workweek_select
I''m having difficulty figuring out the ruby neccessary to do this so I
thought I would try the list. I''m hoping to get a date_select to only
display certain days (specifically only fridays) but rails doesn''t
seem to have the flexibility so I''ve been going at it in ruby to no
avail.
I''ve looked on google but couldn''t find it (because it
2006 Mar 14
21
Changing default date format in Rails
I''ve spent all day digging through the rails api and postgres-pr on
this, I think it''s time to ask the list.
Postgres stores a Date in YYYY-MM-DD format. My users want the dates
in MM/DD/YYYY format.
Sure, I could explicitly convert it on the app level every place where
a date is displayed, but that seemed like a DRY violation.
I thought I''d be clever and simply
2006 Oct 20
7
MVC and modules. Views telling models to behave
I was thinking today, it would be nice if a view could tell a model how to
format it''s data for that particular view.
Kind of like, the view is bestowing instant, and temporary knowledge on the
model for the duration of the views run.
It seemed to me that this would be more objecty than say a helper that
formats a string
format_my_string( my_string )
Instead, in my view. Lets assume I