(Rails3.2.12)
問題
一度httpsのページを表示すると、他のページ移ってもにhttpに戻らない。
解決策
例:hoges_controller の表示をhttpにリダイレクト
app/view/controllers/application_controller.rb
def redirect_to_http_from_https redirect_to :only_path => false, :protocol => "http://" if request.ssl? end
app/view/controllers/hoges_controller.rb
class HogesController < ApplicationController before_filter :redirect_to_http_from_https def fuga :