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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -