Rails, using jQuery without jrails

Posted by ibuck on Stack Overflow See other posts from Stack Overflow or by ibuck
Published on 2009-09-08T22:11:42Z Indexed on 2010/04/16 12:23 UTC
Read the original article Hit count: 324

Filed under:
|

Hello all, I have been trying to convert my rails 2.2.2 app over to jQuery, and would like so without using jrails. The only reference material I can find on the subject is Railscasts Episode 136. Ryan goes over how to use jQuery to post a form and handle the response in a .js.erb file.

My questions is has anyone tried to use jQuery with .js.erb files with anchors as the trigger? As a replacement for "link_to_remote".

I have gotten jQuery to do a .get to submit this link on click to the controller, but I cannot seem to get it to go into the .js.erb file.

Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about jQuery