anshumans
anshumans

Reputation: 4095

Rails 3.2 force_ssl except on landing page

I want to enforce SSL on all routes except my landing page. I tried setting force_ssl in all my controllers, and for the controller that contains root, I did:

force_ssl :except => :index

However, after I deployed this to my staging app on Heroku, my app is still enforcing ssl on the home page. Is there something else that needs to be done to disable ssl on that specific route?

Upvotes: 2

Views: 4230

Answers (1)

shivashankar
shivashankar

Reputation: 1177

rack-ssl-enforcer gem will help you

Upvotes: 6

Related Questions