link_to with jquery params in rails

前端 未结 4 1226
野趣味
野趣味 2020-12-30 11:34

I want to make an in-place search in my rails app.
I used button_to_remote with prototype, but now I\'m using JQuery, so I changed to link_to.
This is my code:

4条回答
  •  长发绾君心
    2020-12-30 11:46

    This isn't exactly a direct answer to your question, but have you looked into jrails? It allows you to use the same prototype javascript helpers that you were using before you switched over to jquery. It made my transition from prototype to jquery much easier.

提交回复
热议问题