Forum: Ruby on Rails jQuery post function

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
DAZ (Guest)
on 2008-12-14 20:14
(Received via mailing list)
If you use jQuery to post data, what is the accepted best practice for
passing parameters - by putting a query string in the url, or passing
them through the data argument of the function?


  $.post(/tasks/3?completed=true;,{ _method: "PUT" },null, "script")


  $.post(/tasks/3;,{ _method: "PUT",completed: true },null, "script")


This topic is locked and can not be replied to.