Displaying 2 results from an estimated 2 matches for "calendar_ev".
Did you mean:
calendar_ref
2010 Mar 31
0
Date format in Rails 3.0 using sqlite3
...but
maybe this is a bug in Rails (I''m using Rails 3.0 beta) which should be
reported.
I have following search statement:
[code]events = CalendarEvent.find :all, :conditions => { :target_date =>
begin_date..end_date }[/code]
which produces following sqlite output:
[code]SELECT "calendar_events".* FROM "calendar_events" WHERE
("calendar_events"."target_date" BETWEEN 2010-03-29 AND
2010-05-03)[/code]
The result is WRONG, because sqlite treats 2010-03-29 as number of the
value 1978!
If I write following instead:
[code]events = CalendarEvent.find :all...
2007 Jan 11
5
how to have default date for date_select
lo there all,
i want to have a date_select heper default to the year 2006, but cant
seem to find out how to pull it off.
any takers ?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to