I'm having trouble getting BackboneJS's syncing to work with my rails3 backend. I'm trying to use the JSON posts, and it sends my data in {_json: {}}. The problem with this is that the authenticity_token is then not included. (Or perhaps it is, but in the _json parameter). Rails won't deserialize it, even though I've forced the ajax options: {contentType: 'application/json', dataType: "json"}.
I posted the question to stack overflow here, if you'd like to bump up your rep, I'll gladly upvote.
--
You received this message because you are subscribed to the Google Groups "Philly.rb" group.
To post to this group, send email to phil...@googlegroups.com.
To unsubscribe from this group, send email to phillyrb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phillyrb?hl=en.
Where does _json get generated?
-Grant
In-Reply-To: <4FDE4CC5-0324-41C8...@gmail.com>
* Jeff Deville <jeffd...@gmail.com> [2011-08-31 12:13:10 -0400]:
I got things working now though. Thanks.
-Jeff