Something in your controller code is redirecting - can't really say without seeing that code
> Question 2: Shouldn't 302 be a type of success?
The http standard places responses into 5 groups:
- informational (100)
- success (200)
- redirections (300)
- client error (400)
- server error (500)
So a 302 response is not a successful response by definition (of course from a user point of view this is not always the case: for validation errors rails often renders an error page (so a 200 response) whereas a successful create/edit is normally a redirect.
See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status for example.
Fred