Colin Law wrote in post #1176283: > On 7 July 2015 at 06:38, Faizan Ali <[email protected]> wrote: >> $.ajax({ >> type: "POST", >> url: "/students/", >> data: dataString, >> success: function() { >> window.alert('success'); >> } >> }); >> }); >> }); > > Not sure what you are asking. Are you asking how to perform the > action in the controller when it receives the POST? If not then > please try to explain again exactly what the question is. Also say > what you have already tried. > > Colin
Yes, may be you're right, I simply want to perform "edit" action with Ajax, but it let's me do "create" action instead. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a92051a6531e0988805d020a919ccf49%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

