Search code examples
ruby-on-rails-3rufus-scheduler

https links using rufuse scheduler - rails


My site is working with https protocol. When I am creating a link in an email. It is creating a link with http protocol. My other links are being created correctly but link with created in rufuse scheduler's schedule is getting http. How can I fix this issue?

Thanks in advance.


Solution

  • You can use the :protocol option in a link_to (which I'm assuming you are using).

    <%= link_to "Click here", root_url(:protocol => "https") %>