Force SSL on Every Request Rails > 3.0.*
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
force_ssl.gemspec

README.md

ForceSSL

Force every request to https using Rack middleware in Rails Apps >= 3.0.*.

Installation

gem 'force_ssl', :git => 'git@github.com:bseanvt/force_ssl.git'

In config/environments/production.rb

config.middleware.use "ForceSsl::ForceSSL"

All done!

Other Gems

For a more thorough library checkout out https://github.com/tobmatth/rack-ssl-enforcer