Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6318801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:41:23+00:00 2026-05-24T15:41:23+00:00

in devise, the forms look like this: form_for(:resource, @resource, :url => edit_user(resource), :html =>

  • 0

in devise, the forms look like this:

form_for(:resource, @resource, :url => edit_user(resource), :html => {:method=> put}) do |f|

but I’m wondering, does it have to include method => put? Isn’t REST supposed to have taken care of that already?

I’ve tried using form_for(@resource) but it does not get the edit user path. I think I am missing something here. Any help will be very much helpful. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:41:24+00:00Added an answer on May 24, 2026 at 3:41 pm

    One of there rails guides talks about this, here is a snippet:

    The Rails framework encourages RESTful design of your applications,
    which means you’ll be making a lot of “PUT” and “DELETE” requests
    (besides “GET” and “POST”). However, most browsers don’t support
    methods other than “GET” and “POST” when it comes to submitting forms.

    Rails works around this issue by emulating other methods over POST
    with a hidden input named “_method”, which is set to reflect the
    desired method…

    You populate this hidden input using :html => {:method=> put} this gives rails a bit of hint. Using this hint and the url you’re submitting to rails can work out which of the restful action to submit the form to.

    Have a read of that rails guide that I linked to, things should become a lot clearer after that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got the client_side_validations gem working really great on my forms. I'm using Devise
I've followed the instructions here: http://github.com/plataformatec/devise/wiki/How-to-edit-user-form-without-current-password But it seems to ignore that and still
Is it possible to configure Devise to accept logins for multiple models (either User
I have a form, and for layout (and future use), i would like to
I have the same issue as Creating an additional related model with Devise (which
I'm developing Rails application and I have to use authentication. I installed devise gem
I have tried setting this up based on previously asked questionshere on stack overflow
in my rails 3 app I use devise. For the password reset form I
I'm using Devise and Can-Can for my community blog and currently looking for a
I'm using devise & devise_invitable in a rails 3 project, and I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.