samedi 4 avril 2015

Rails routes and querystring

I am having troubles trying to define the correct route for a query coming from ember. The request appears like this:



GET "/users?id=1011


No matter what I try I always have the request forwarded to the index action, while it is intended for the show action. I have tried many things, like



get "/users?id=", to: redirect('/users')


but nothing seems to work. Can anyone explain to me what can I do and most important the reason behind it? Thank you very much for your time!





Aucun commentaire:

Enregistrer un commentaire