使用config.force_ssl = true的Rails配置设置就像一个魅力,并使所有网址都使用https,但是有可能有一个特定网址没有https吗?
提前致谢.
class ThingsController < ApplicationController
force_ssl :except => :index
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1974 次 |
| 最近记录: |