Non-crud rails actions in Ember.js -
How can I use non-crude operations from my railroad controller in Amber.JS?
i.e. In my controller I have some other actions besides creating an index, show, ... like the MacroPhone action and I want to use it in Amber
You can use JQuery AJAX calls directly:
$. Ajax ({url: '/ projects /' + project_id + '.json', type: 'GET', success: works (data, textstats, excerpts) {result.setProperties (data.project); result.set ('isLoaded ', True);}, error: function (xhr, textStatus, errorThrown) {warning (' not found ')}}
Comments
Post a Comment