railsware / js-routes

Brings Rails named routes to javascript
http://railsware.github.io/js-routes/
MIT License
1.61k stars 151 forks source link

Cant pass query params to index resource route #279

Closed lukasedw closed 3 years ago

lukasedw commented 3 years ago

Don't generate query params to a index resource route: image image

But when i try to pass to a get or post route: image image

bogdan commented 3 years ago

Remove last s from bases:

Routes.process_activity_base_path({id: 3})
lukasedw commented 3 years ago

Remove last s from bases:

Routes.process_activity_base_path({id: 3})

It is not a record that i am trying to route. I want to past query parameters for search, like Routes.process_activity_bases_path({name_eq: 'James'}) -> /process_activity_bases?name_eq=James

bogdan commented 3 years ago

Can you report a bug in a more formal way? What do you do, what is your expectation, what is is a thing you actually get?

https://gist.github.com/carlo/3402842