berk / will_filter

rails engine plugin for filtering active_record model objects
MIT License
157 stars 76 forks source link

Calendar won't display #47

Open Typpex opened 11 years ago

Typpex commented 11 years ago

When i want to filter by datetime field, i can not display the calendar. It was working a few months back but it doesn't seem to be a regression because i tried to use other version of the gem but the problem remmain the same

ActionController::RoutingError - No route matches {:controller=>"will_filter/calendar"}: (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:533:in raise_routing_error' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:529:inrescue in generate' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:521:in generate' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:562:ingenerate' (gem) actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:587:in url_for' (gem) actionpack-3.2.11/lib/action_dispatch/routing/url_for.rb:148:inurl_for' (gem) actionpack-3.2.11/lib/action_view/helpers/url_helper.rb:107:in url_for' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:619:inblock in html_options_for_form' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:615:in tap' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:615:inhtml_options_for_form' (gem) actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb:68:in form_tag' (gem) haml-4.0.3/lib/haml/helpers/action_view_mods.rb:132:inform_tag_with_haml' (gem) haml-4.0.3/lib/haml/helpers/action_view_xss_mods.rb:18:in form_tag_with_haml_xss' (gem) will_filter-3.1.10/app/views/will_filter/calendar/index.html.erb:15:inhome_ubuntu__rvm_gemsruby____pgems_will_filter____app_views_will_filter_calendar_index_html_erb_699857499657661438'

The problem seem to be in will_filter/calendar/index.html.erb in form_tag({:controller => "/will_filter/calendar"}.

If i replace {:controller => "/will_filter/calendar"} by "will_filter/calendar" the calendar is displayed.