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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:06:43+00:00 2026-06-17T03:06:43+00:00

Rolling my own email confirmation from scratch. Struggling with how to generate the proper

  • 0

Rolling my own email confirmation from scratch. Struggling with how to generate the proper routing for my confirmations_controller.

new user gets sent an email with link back to app to ‘verify’ address.

My thought is it should be a PUT action because it WILL make changes to the DB. But, clicking on a link in an email won’t submit a ‘put’ action…or will it? I must be missing something, my own ignorance aside.

#config/routes.rb
...
resources :confirmations, only: [:update]

confirmation_url(user.email_token) generates valid url: http://localhost:3000/confirmations/ArELEOejYlqbRXdJPavhrp but when clicking on that link it is received by app as a ‘get’ request.

How should I be handling this?

  • 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-17T03:06:44+00:00Added an answer on June 17, 2026 at 3:06 am

    What format is your email? If its plain text, it will be a GET. That itself is not a problem for updating the activation page. You could also open a page (with GET) and let them click on a button for final submit (not uncommon).

    However, updating through a GET would not bother me for this specific function.

    example:

    # routes.rb
    get 'confirmations/:id/confirm' => 'Confirmations#confirm'
    
    # confirmations.rb
    class ConfirmationsController < ApplicationController
    
      def confirm
        # handle the get data here (switch aa flag for the email account)       
       end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm rolling my own ActivatableCollection<T> for db4o but cribbing heavily from the builtin ActivatableList<T>
Rolling out my own unique email checking method. Using .equalTo and .find I still
Apart from rolling my own collection, I'm wondering which existing (.NET 3.5) Collection and
I'm aware of the risks of rolling your own user authentication scripts, but I'm
I see a number of posts talk about rolling your own LINQ to SQL
I'm looking for a good Wizard library in Flex before rolling my own. The
we're rolling out a new voicemail system, and trying to figure out a way
I am rolling my own simple web-based perfmon, I am not happy with some
I am rolling my own blog framework, mainly to learn how everything works. I
I often end up rolling my own wrapper/extension methods for/around System.Uri and was wondering

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.