berk / will_filter

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

Routing error on submit #57

Closed sqlninja closed 10 years ago

sqlninja commented 10 years ago

When any filter is added and then submitted I get the follow error: Routing Error

No route matches [GET] "/null"

Try running rake routes for more information on available routes.


I am running rails 3.2.19 will_filter 3.1.11

and it appears that the routes are in place...

sqlninja commented 10 years ago

Upon further inspection the issue was that the submit was checking if the orignal_form_action != "" but at instantiation this.orginal_from_action is set equal to null... I edited the instantiator to set it to "" and it works now... I will be forking and submitting a pull req.