AJAX with Ruby on Rails?

Posted by Zachary on Stack Overflow See other posts from Stack Overflow or by Zachary
Published on 2010-03-15T14:33:53Z Indexed on 2010/03/15 14:49 UTC
Read the original article Hit count: 301

Filed under:
|
|

This is probably a really dumb question with a simple answer but...

I am working on a project where I need to use AJAX to send/receive information. I am using Ruby on Rails (which I am pretty new to), but rather than using the helper methods or the built in functionality in the 'defaults' Javascript file, I need to do this manually in my own Javascript.

I believe that ultimately I will want to send a request with a JSON object, then have the controller return another JSON object containing the requested information.

The problem is that I cannot seem to find the syntax for sending something to a specific controller method, with parameters, directly from Javascript - everything I Google ends up being tutorials for using the Rails AJAX helper methods.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about JavaScript