DEPRECATION WARNING: Using #request_uri is deprecated. Use fullpath instead. (called from ensure_proper_protocol at /Library/Ruby/Gems/1.8/gems/ssl_requirement-0.1.0/lib/ssl_requirement.rb:53)
此外,当处理新的'data-method'属性时,它似乎会出错。例如:
<%= link_to "Logout", user_path, :method => :delete %>
在应用程序的SSL部分访问时工作正常,但是当从非SSL部分(用户控制器中的所有操作都需要SSL,尽管我知道销毁操作不会传输安全数据)跟随时会失败(尝试呈现显示操作)。
match
规则创建了一个重定向循环。 - Raphaelscope
将所有 https 路由包装在一个地方,而不是在每个单独的控制器中进行此操作并尝试跟踪它。这样更加DRY。 - bigpotato