field_search with datetime column and jquery datepicker

89 views
Skip to first unread message

Nick Rogers

unread,
May 14, 2012, 4:57:44 PM5/14/12
to actives...@googlegroups.com
Is field_search supposed to work on a datetime column where the search_ui for the column is the jquery timepicker. I am trying to use this and the datepicker pops up, but I get the following error when clicking Search.

ArgumentError (invalid date):
  vendor/git/active_scaffold/lib/active_scaffold/finder.rb:126:in `strptime'
  vendor/git/active_scaffold/lib/active_scaffold/finder.rb:126:in `condition_value_for_datetime'
  vendor/git/active_scaffold/lib/active_scaffold/bridges/shared/date_bridge.rb:130:in `block in date_bridge_from_to'

Nick Rogers

unread,
May 16, 2012, 12:35:52 PM5/16/12
to actives...@googlegroups.com
Please refer to this issue:

Sergio, I am unsure how to fix this correctly without breaking your previous fix. Please help. Thanks!


--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/UjuK4cWnSmMJ.
To post to this group, send email to actives...@googlegroups.com.
To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.

Nick Rogers

unread,
May 16, 2012, 4:29:38 PM5/16/12
to actives...@googlegroups.com

ser...@entrecables.com

unread,
May 16, 2012, 4:32:19 PM5/16/12
to actives...@googlegroups.com
Not at all, it was broken when datepicker was fixed to use
time.formats.picker

On Wed, 16 May 2012 16:29:38 -0400, Nick Rogers <ncro...@gmail.com>
wrote:
> [1]
>
> On Wed, May 16, 2012 at 12:35 PM, Nick Rogers wrote:
> Please refer to this issue:
> https://github.com/activescaffold/active_scaffold/issues/163 [3]
>
> Sergio, I am unsure how to fix this correctly without breaking your
> previous fix. Please help. Thanks!
>
> On Mon, May 14, 2012 at 4:57 PM, Nick Rogers wrote:
> Is field_search supposed to work on a datetime column where the
> search_ui for the column is the jquery timepicker. I am trying to use
> this and the datepicker pops up, but I get the following error when
> clicking Search.
>
> ArgumentError (invalid date):
>   vendor/git/active_scaffold/lib/active_scaffold/finder.rb:126:in
> `strptime'
>   vendor/git/active_scaffold/lib/active_scaffold/finder.rb:126:in
> `condition_value_for_datetime'
>  
> vendor/git/active_scaffold/lib/active_scaffold/bridges/shared/date_bridge.rb:130:in
> `block in date_bridge_from_to'
>
> --
> You received this message because you are subscribed to the Google
> Groups "ActiveScaffold : Ruby on Rails plugin" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/activescaffold/-/UjuK4cWnSmMJ [5].
> To post to this group, send email to actives...@googlegroups.com
> [6].
> To unsubscribe from this group, send email to
> activescaffol...@googlegroups.com [7].
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en [8].
>
> --
> You received this message because you are subscribed to the Google
> Groups "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to actives...@googlegroups.com.
> To unsubscribe from this group, send email to
> activescaffol...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>
> Links:
> ------
> [1]
> https://github.com/activescaffold/active_scaffold/commit/3df09c581f25b6ea2142bd6f986f325f0a3b9e82
> [2] mailto:ncro...@gmail.com
> [3] https://github.com/activescaffold/active_scaffold/issues/163
> [4] mailto:ncro...@gmail.com
> [5] https://groups.google.com/d/msg/activescaffold/-/UjuK4cWnSmMJ
> [6] mailto:actives...@googlegroups.com
> [7] mailto:activescaffold%2Bunsu...@googlegroups.com
> [8] http://groups.google.com/group/activescaffold?hl=en

Nick Rogers

unread,
May 16, 2012, 7:48:53 PM5/16/12
to actives...@googlegroups.com
OK. Thanks for fixing it anyways.
Reply all
Reply to author
Forward
0 new messages