How to include full-path in Rails 3 link_to statement?

后端 未结 6 608
说谎
说谎 2021-01-17 10:17

I am trying to put a Rails link_to statement inside a Mailer email that includes the full-path (ie - http://localhost/contacts/id/confirm). The link_to statement that I am

6条回答
  •  清歌不尽
    2021-01-17 10:42

    I think you need to pass the host in a before filter when using it in an e-mail format. I recall using this page when I had a similar issue: http://www.cherpec.com/2009/06/missing-host-to-link-to-please-provide-host-parameter-or-set-default_url_optionshost/

    Here is an SO post on it too with a different take

提交回复
热议问题