OP,
Expanding on the answer in the related SO question provided.
For referencing RESTful urls in the markup, (as well as in the JS) would storing the value in a data attribute suit your needs?
$('div.whatever').editable("", {
onsubmit: function (settings) {
settings.target = "//foo.bar" || $(this).attr('data-editable-url');
}
});
<div class="whatever" data-editable-url="budgets/6/incomes/1">
...
</div>
That's the route that immediately comes to mind.
Hope it helps.