Hi everyone! I want to require SSL for a single action in one of my
controllers (for logging in, and sending a password).
Working off of the skateboard book, I have added:
to my application controller, and then in the login controller, I have
added the line:
This does not give me any errors, but it does not redirect me to https
either. It simply acts like it did before I added those two lines.
What have I missed?
I believe ssl is working on my server, as I can actually change any
address in my app to https instead of http, and it works fine, but it
seems to be ignoring the ssl_required line. Here is a taste of what
class LoginController < ApplicationController
before_filter :authorize, :except => [:login, :index]
Any help would be greatly appreciated. Hopefully I've just missed
something simple, but as I said, I'm using the example posed in the
skateboard book, and it seems to be just that simple. Thank you!