Ruby on Rails
Monday, September 17, 2018
doubtful. They are very different. Any reason you can't stick with one of them?
On Tue, Sep 18, 2018 at 8:24 AM Joe Guerra <JGuerra@jginfosys.com> wrote:
Thanks, I'll try that.Hopefully it works for postgres and sqlite.--On Mon, Sep 17, 2018, 5:18 PM Rob Zolkos, <rob@zolkos.com> wrote:I think you will need to wrap todaydate in strftime for sqlite. Away from computer to check but google 'date arithmetic sqlite'--On Tue, 18 Sep 2018 at 6:20 am, Joe Guerra <JGuerra@jginfosys.com> wrote:I have an active record query (for my categories) that check for the date ( .where( 'enddate > ?', todaydate )).Today's date get's wrapped in quotes, and it fails to produce any records, but it's perfectly fine in postgres.--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/394a0f57-7d77-4d73-82ce-fd9730bc90b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzJR9hQOO-ECQ8rd2DrC0JOUmX1JzymD%3Df%3DgU0TkJA94qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOFgAMmVVh5jtGQU3jwHDhb1f74OJp6m88FYaV5S0V%2BJ%2BKRRkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzLzJBpfyTems%3DsJL75GLY04FVym5H9rbgVYejG7q7__Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment