New Discussion

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

1
Rails

Hi, I am new to Rails.

Can anyone help me with this issue?

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

Join the discussion
Create an account Log in

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

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

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