7

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?

sri prasanna
  • 171
  • 1
  • 2

2 Answers2

6

This should answer your question:

Rails 3 SSL Deprecation

Community
  • 1
  • 1
gjb
  • 6,237
  • 7
  • 43
  • 71
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
  • 1
    This 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