Skip to content

Instantly share code, notes, and snippets.

I am having problem with routes in Ruby and hope that someone can help me. I have problem understanding how routes works. My code is generating the following url:
http://localhost:3000/getnotes/category/?id=1 and I am getting this error:
Routing Error
No route matches "/getnotes/category"
How can I get it to work?
this url works for some reason but I can't use it since I later need encode my data before sending it.
http://localhost:3000/getnotes/category/1.js
Jquery code to get the notes