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

  • SEARCH
  • Home
  • 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

Have converted devise new session from erb to Haml but doens't work, this is
I'm using devise and I put the login and sign up forms in the
This code works in a windows forms application (it shows the preview) but not
Devise a simple algorithm which creates a file which contains nothing but its own
I'm trying to devise a method that will be able to classify a given
Is there a way in devise that i can simply send in a url
I've got the client_side_validations gem working really great on my forms. I'm using Devise
I'm using Devise to set up user authentication, but I'm having difficulty getting users
This ( https://github.com/radar/forem ) is the code for the Rails 3 forum engine, but
How do Mobile Apps communicate with a server? Does this communication happen over HTTP

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.