Forum: Ruby on Rails jQuery post function

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C4cd024191ff30fb901592e63d9ef820?d=identicon&s=25 DAZ (Guest)
on 2008-12-14 19: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?

e.g.

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

OR

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

cheers,

DAZ
This topic is locked and can not be replied to.