:with is a javascript fragment, so something like “{sd_resolution_id: @sd_resolution_id, id: escape($(’@sd_ticket’))}” is probably about
right.
in this particular case, can’t you just do
:with is for passing in javascript ,not for passing parameters to the
URL. In all functions which create a URL, you can pass in extra
parameters in the URL specification part. In your example, you’d want
something like:
:with is for passing in javascript ,not for passing parameters to the
URL.
Bit misleading there as I wasn’t thinking right at the time. It is
for passing parameters, however it’s mainly useful for passing
JavaScript values (or DOM values) as parameters.
You can use it for passing Rails values, but it’s a bit ugly compared
to putting them in the :url hash.