Rails mailer edit_user_url uses http not https

后端 未结 2 1290
囚心锁ツ
囚心锁ツ 2021-01-11 09:40

My entire app is https, no http.

If add the following to any of the views

I get a \"edit user\" linked to

https://localhost:3000/user/2/edit

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-11 10:06

    I believe that you have to put in your config/environments/production.rb:

    config.action_mailer.default_url_options = {:protocol => 'https'}
    

提交回复
热议问题