Getting Rails URL helpers to automatically output https urls

后端 未结 7 2053
再見小時候
再見小時候 2020-12-25 12:02

I am developing a site that mixes http and https a lot - whats the best/easiest way to make the links use the right protocol for the route - can it be specified in the route

相关标签:
7条回答
  • 2020-12-25 12:55

    It looks like this will be solved in Rails 4! https://github.com/rails/rails/commit/9b4514c3b8ecfbc40a44dbd4c2ebd4ce67f4a459

    0 讨论(0)
提交回复
热议问题