rails tutorial About account activation in production environment

Introduction

I am a beginner in programming. rails tutorial I will describe my solution when the account cannot be activated in the production environment of Chapter 11.

environment

Ubuntu 18.04 LTS ruby 2.7.1 Rails 6.0.3

problem

Rails tutorial I can't activate my account in the production environment of Chapter 11. I received an email but I can't access the link. Looking at the URL that arrived, ... https://XXXXXXXX-XXXXXXXXXX-XXXXX.herokuapp.com%3E.herokuapp.com/account_activations/LE2XcAU-C4szTXa7Yx4zWA/edit?email=(設定したメールアドレス).com For some reason herokuapp.com is twice. .. Something like% 3E. .. .. (% 3E is> in URL encoding)

solution

Set in production.rb

host = '<https://XXXXXXXX-XXXXXXXXXX-XXXXX.herokuapp.com>.herokuapp.com'

Part of

host = 'https://XXXXXXXX-XXXXXXXXXX-XXXXX.herokuapp.com'

It was solved by.

Recommended Posts

rails tutorial About account activation in production environment
[Rails] Reset the database in the production environment
11.2 Send Account Activation Email: Rails Tutorial Notes--Chapter 11
Rails5.1 + puma SSL connection in local production environment
[Rails] About the error that the image is not displayed in the production environment
500 Internal Server Error occurs in Rails production environment
[Rails tutorial] A memorandum of "Chapter 11 Account Activation"
Regarding overcapacity when setting Rails tutorial environment in Cloud 9
About the symbol <%%> in Rails erb
Create a database in a production environment
[Rails 6] Customize Bootstrap in Rails + Bootstrap 5.0.0-alpha environment
[Rails] How to execute "rails db: create" etc. in production environment EC2
Can't output PDF in production environment (EC2, Amazon Linux) with Rails
[Rails] How to reset the database in production environment (Capistrano version)
rails tutorial
How to reflect seeds.rb in production environment
About Rails 6
rails tutorial
rails tutorial
How to use MySQL in Rails tutorial
rails tutorial
[Rails] About local: true described in form_with
Show Better Errors in Rails + Docker environment
Image is not displayed in production environment
rails tutorial
rails tutorial
rails tutorial
Display the background image in the production environment
Where I got stuck in today's "rails tutorial" (2020/10/08)
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 6
[Rails] Run LINEBot in local environment using ngrok
Where I got stuck in today's "rails tutorial" (2020/10/05)
Where I got stuck in today's "rails tutorial" (2020/10/06)
Where I got stuck in today's "rails tutorial" (2020/10/04)
[Rails] How to use PostgreSQL in Vagrant environment
Where I got stuck in today's "rails tutorial" (2020/10/07)
rails tutorial Chapter 1
[Rails] How to delete production environment MySQL data after putting it in the development environment
Rails tutorial memorandum 1
Rails tutorial memorandum 2
rails tutorial Chapter 7
rails tutorial Chapter 5
Group_by in Rails
rails tutorial Chapter 10
rails tutorial Chapter 9
[Rails] About ActiveJob ,!
rails tutorial Chapter 8
Start Rails Tutorial
About Rails controller
[Beginner] Rails Tutorial
About RSpec (Rails)
Migration error after Activerecord association in Rails5 + Docker environment (2)
Sharing research on ER diagram automation in Rails environment
[Ruby on Rails Tutorial] Error in the test in Chapter 3
I get Mysql2 :: Error :: ConnectionError in the production environment
Migration error after Activerecord association in Rails5 + Docker environment
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapters 4 and 5
Questions about implementing the Like feature (Ajax) in Rails
SSL in the local environment of Docker / Rails / puma
[Error] The app is not displayed in the production environment
Beginners use ubuntu in windows to prepare rails environment