When clicking on "update" on edit profile page, rails deletes the user instead of updating data to database
Hey!
I guess you'll need to provide some code, in order for us to be able to help you :)
Things to look out for:
- has your "update"-button the correct path/link specified?
- does your route call the desired controller action?
- is the HTTP-verb correct? (watch out for
method: :delete
on your button specifically)
Cheers,
Dom