On Fri, Dec 23, 2011 at 11:19 AM, Bill Walton <[email protected]> wrote: > On Fri, Dec 23, 2011 at 11:12 AM, Bruno Meira <[email protected]> wrote: >> Hmmmm.... >> Ok, I will try do this using an ajax call... >> But How can I pass object references using an ajax call? Is it possible in >> rails or I need pass object attributes by JSON? > > I believe that's what the 'data' argument of the .load function is > supposed to be used for. Make a simple test using a string and see > what you get in the params hash on the server.
If you're not already using them, I find both the Firebug and Live HTTP Headers plug-ins indispensable for exploring ajax calls. Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

