On Tue, Jul 7, 2015 at 10:14 AM, Faizan Ali wrote: > I tried with URL "/students/1", which is obviously for editing the > Student with id 1, but with type: "POST" the URL returns 404 error in > the console. So, I tried with type: "PUT", the URL here doesn't return > the 404 error but it doesn't update the Student.
Are you using the stock-standard generator-generated routes and controller? Can you "puts" something in the controller's update action to confirm that you are indeed reaching the correct action? That would solve as much of it as we can with the information already given. If you are reaching the right controller action but the desired updating is not happening, we'll need to see the code in the controller action. -Dave -- Dave Aronson, consulting software developer of Codosaur.us, PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.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/CAHxKQig7JLBR4uOQaYPJr586%2B5qcu0a9EEnqPJjMTqJ2T%2Bc1zQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

