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.