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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:12:18+00:00 2026-06-08T08:12:18+00:00

I have already made Recoverable module working, so all my setting for mailing are

  • 0

I have already made Recoverable module working, so all my setting for mailing are set.

I need to add mettod in my mailer class:

 def congrats(user, password)
  @user = user
   mail(:to => user.email,
     :subject => 'Congrats message')
  end

I will use http://railscasts.com/episodes/206-action-mailer-in-rails-3 railscast for doing this

BUT where I should call congrats method ? In after_sign_up_path_for or not ? What would be the best practice ?

  • 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-08T08:12:19+00:00Added an answer on June 8, 2026 at 8:12 am

    I would say bast practice is to not spam your users with a bunch of different emails. However, the easiest way for you to implement this would be to turn on confirmable for your Devise model. And then put your welcome message in the confirmation email.

    If you are not using confirmable, or are dead set against having just the one email, why not put this in a callback on your Devise model?

    after_create :congrats_email
    
    def congrats_email
      mail(to: self.email, subject: "Welcome Message")
    end
    

    Either approach is easy enough to implement, you just need to decide which will best suit your users.

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

Sidebar

Related Questions

I have an XDocument class with the XML contents already made. I basically want
I'm working with a MCU in C and I have an already-made library I
I am working on a php+javascript based project and have already made up a
I have already made an algorithm for the problem but it still got a
I have a problem creating and executing a JAR file. I have already made
Is this even possible? I have a key-pair that I already made with GPG
I have already pushed all the changes to the server. Here is the order
I have already made a regex which should work, but it doesn't work. echo
I have already made a function of multiplication of long numbers, addition of long
I am looking to create an app I have already made for Android for

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.