szimek
2009-Jan-19 14:21 UTC
How to set up Ajax.Request, so that format.json block is executed?
Hi, I''ve got format.js block in my code that returns some RJS. I''m trying to do edit-in-place using RESTful approach and I''ve added format.json block to the update action, but I can''t figure out how to setup Ajax.Request, so this format.json block is actually executed. I''ve tried adding contentType: "text/x-json" (or "application/json") to Ajax.Request options, but I''m getting 404 errors. I''m using Rails 2.1.2. Cheers, Szymek --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---