Line breaks in JSON string lost by Rails controller
This could be nothing, but aren't PUT
methods meant to be POST
'ed in RESTful Rails? GET
-ing any URL should be repeatable w/o any change to the database.
If you changed your AJAX call to post
you could also indicate proper content-type of application/json
so Rails knows how to handle it.