#47
Solved
Date Formatting Bug
Reported by Jashugan on Ajax Scaffold · 11/09/2006 20:50:53
- Assigned to:
- Nobody
- Priority:
- Normal
- Status:
- Solved
- Category:
- None
- Version:
- 3.1.5
This piece of code (found in ajax_scaffold.rb,
AjaxScaffold::ScaffoldColumn.initialize):
eval = options[:eval].nil? ?
"h(#{Inflector.underscore(klass.to_s)}.#{
name})" : options[:eval]
messes date formatting
So if you are not defining @scaffold_columns, it turns all of the date
and time classes into strings. Which breaks the format_column method,
because it relies on the date and time columns to be Date and Time
classes.
Loading comments...