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 9150329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:35:51+00:00 2026-06-17T11:35:51+00:00

I have a defined User and I want to be able to let him

  • 0

I have a defined User and I want to be able to let him confirm his account be reentering his email and names (because those have been filled by a third party). So here is what I have:

def confirm_account
    if request.get?
      self.resource = resource_class.to_adapter.get!(send(:"current_#{resource_name}").to_key)
    elsif request.put?
      self.resource = build_resource(resource_params)
      if self.resource.save 
      else
        respond_with resource
      end
    end
  end

And in my template I have:

<%= simple_form_for(resource, :as => resource_name, :url => confirm_account_path(resource_name), :html => { :method => :put, :autocomplete => "off", :class => 'form-vertical' }) do |f| %>
  <%= devise_error_messages! %>
    <h1> Create your Account </h1>
    <%= f.input :first_name, :label => "First Name" %>
    <%= f.input :last_name, :label => "Last Name" %>
    <%= f.input :email, :label => "Email add." %>
  <p>
    <%= f.button :submit, "Create account" %>
  </p>
<% end %>

However, when I click on the Submit button, I see in the logs the following:

   (0.3ms)  BEGIN
  User Exists (0.5ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = 'myemail@gmail.com' LIMIT 1
   (0.3ms)  ROLLBACK
Completed 406 Not Acceptable in 5ms (ActiveRecord: 1.1ms)

Why is not letting me try to update the user?

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-06-17T11:35:52+00:00Added an answer on June 17, 2026 at 11:35 am

    Because you aren’t defining it.

    See how the other actions in the Devise::RegistrationsController define resource here:
    https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb

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

Sidebar

Related Questions

I have a user-defined table type. I want to check it's existence before editing
Most systems will have a user-defined function (UDF) available. Some will not. i want
I have a stored procedure in which i want to create a user defined
So I have a file for constants. I want to let user define them
I have created a user defined function in .NET 2.0 and am able to
I want to use a case statement in my user-defined functions because I need
I have a user defined function defined in SQL Server. I want create a
I have defined a User model and added a featured field to it: class
I have this user defined function. public partial class UserDefinedFunctions { static int i;
I have an user defined table function in SQL Server that aggregate data from

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.