I have used ssl_requirement plugin for previous versions of Rails and it is awesome. But for Rails 3 I want to try out some new plugins or gems. Any suggestions?
Asked
Active
Viewed 5,824 times
2 Answers
6
FYI there is a rails3 version of ssl_requirement, see:
https://github.com/bartt/ssl_requirement
The gem is call bartt-ssl_requirement
so in your Gemfile you'll want
gem 'bartt-ssl_requirement', :require => 'ssl_requirement'

Greg Fairbrother
- 1,041
- 8
- 13
-
1This should be discouraged and @gjb's answer should be marked as correct – davidcollom Mar 15 '13 at 12:24
-
As an interim measure on the way from 2.3 to 3.1+ it's probably acceptable to use this gem, especially for the where one wants to force SSL based on some application logic (like a boolean from the database). I don't see @gjb's link would solve this problem as easily as ssl_requirement. – Brendon Muir May 12 '14 at 04:38