I’m trying to automaticly update data using a ajax call out of jquery.
When an object gets moved, this code is being executed:
This is my jquery code
contentType: 'application/xml', // format of request payload dataType: 'html', // format of the response });
My controller looks like this:
@device = Device.find(params[:id])
render :action => ‘edit’
In my log I can see the request comming in, but nothing really happens,
at the bottom Completed 204 No Content
I’m also noticing that the value that I’m passing cannot be found at the
parameters part of the log
Started PUT “/devices/2328.xml” for 127.0.0.1 at 2014-02-01 19:10:33
+0100Processing by DevicesController#update as XML
Device Load (0.4ms) SELECT
id = 2328 LIMIT 1
(0.1ms) COMMITCompleted 204 No Content in 9ms (ActiveRecord: 0.6ms)
I can’t really figure out what is wrong.
Does anyone have a clue?