Ask A Question

Notifications

You’re not receiving notifications from this thread.

When clicking on "update" on edit profile page, rails deletes the user instead of updating data to database

aboutbenjamin asked in Rails

Hi, I am new to Rails.

Can anyone help me with this issue?

Reply

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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.