Save 36% for Black Friday! Learn more

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