Re: [Rails] Routing error in ajax on ruby on rails

2013-10-02 Thread Colin Law
On 2 October 2013 20:29, Jose Urquidi wrote: > I have this in my .html.erb code: > > $.ajax({ > url: "/timeMachineEdit", > data: {editTimeMachine: newArray}, > type: 'POST', > success: function (res) { > if (res.result === 'ok') { > alert('Data saved'); > } else { > alert(

[Rails] Routing error in ajax on ruby on rails

2013-10-02 Thread Jose Urquidi
I have this in my .html.erb code: $.ajax({ url: "/timeMachineEdit", data: {editTimeMachine: newArray}, type: 'POST', success: function (res) { if (res.result === 'ok') { alert('Data saved'); } else { alert('Save error'); } }, error: function () { alert('Save erro