In my rails app, i need to populate 1 field with value that came in json, which was returned by clicking on link. Is there any tutorial on how to correctly use ajax to do such thing? Here is my plan how to do this:
1.Send get request to my json appname/controller/action.json
2.parse
this json on client side
3.set value
of field with parsed json