Just do IT

思うは招く

Rails アプリへのアクセスを https にする

デフォルトでconfig.force_ssl = trueコメントアウトされている。これをコメントインして有効にする。

config/environments/production.rb

  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  config.force_ssl = true

参考