bingo bob wrote in post #978210:
> OK, tested...
>
> on my server, in production,
>
> ./script/console
>
>>> App.time_query("2011-01-28 13:58:38","2011-01-28 13:58:38")
> => [#<App id: 700, name: "Dream Home HD", description: "LIMITE.... bla
> bla bla]
>>>
>
> so it works... returns a single app as I might expect
>
> in the browser I do...
>
>
http://server_ip/apps.json?date_from=2011-01-28T13:58:38Z&date_to=2011-01-28T13:58:38Z
>
> I get
>
> [ ]
>
> So nothing, it doesn't find the app.
Testing this way is risky: you might have different data in the two DBs.
Instead, compare the SQL generated by the two queries.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.