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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:41:15+00:00 2026-05-28T01:41:15+00:00

Some confusion here. Using devise:invitable, and sending emails from heroku with the sendgrid add

  • 0

Some confusion here. Using devise:invitable, and sending emails from heroku with the sendgrid add on.

On local, in the email that’s generated when a user is invited, <%= root_url %> generates http://localhost:3000/ – which seems perfectly correct –
but when deployed to heroku, when I receive the invite email, that same <%= root_url %> is coming out as http://yourhost.com/ …why? Where’s that set?

I thought root_url worked off routes.rb automatically and I have

root :to => 'home#splash'

I feel like I’m missing something obvious? I added the suggestions from this question to the application controller, but it has made no difference, the email still references http://yourhost.com/

Help appreciated thank you.

  • 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-28T01:41:16+00:00Added an answer on May 28, 2026 at 1:41 am

    In your config/environments/production.rb set

    config.action_mailer.default_url_options = {:host => 'www.yourdomain.com'}
    

    You probably followed the Devise setup instructions displayed after you installed Devise which gets you to add

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }
    

    to your developments.rb file – but you just forgot about production.

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

Sidebar

Related Questions

I apologize to move it from here as there was some confusion and thanks
I'm designing a tool using Java 6, that will read data from Medical Devices.
EDIT Sorry for the confusion, here is my updated question. I am using FindBin
I have some confusion related to the .NET platform build options in Visual Studio
I noticed some confusion initially with my question. I'm not asking about how to
I am having some confusion with the new keyword,things work fine when I am
I am learning JPA from this tutorial . I have some confusions in understanding
I'm working with some code that is confusing me and I'm wondering if I'm
I still have some confusion about this thing. What I have found till now
I am using a backgroundworker that can have n instances. Problem is the DoWork

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.