0

I'm using Heroku and Rails 3.1 with an SSL certificate for secure.example.com.

I only want pages with forms (secure.example.com/login, for example) to be behind secure.example.com. Any ideas?

calf
  • 861
  • 2
  • 11
  • 23

1 Answers1

2

There's always the classic: https://github.com/rails/ssl_requirement. You can also introduce some middleware for all requests or roll your own before filter as described here: Force SSL using ssl_requirement in Rails 2 app

Community
  • 1
  • 1
mnelson
  • 2,992
  • 1
  • 17
  • 19