How can I use a non-crud action from my rails controller in Ember.js?
i.e. in my controller I have few more action except index, show, create... like a makeMoreFun action and I wanna use it in ember
How can I use a non-crud action from my rails controller in Ember.js?
i.e. in my controller I have few more action except index, show, create... like a makeMoreFun action and I wanna use it in ember
You can use straight JQuery ajax calls:
$.ajax({
url: '/projects/' + project_id + '.json',
type: 'GET',
success: function(data, textStatus, xhr) {
result.setProperties(data.project);
result.set('isLoaded', true);
},
error: function(xhr, textStatus, errorThrown) {
alert('not found');
}