I have a Rails 3 app running on Heroku and I also have a SSL installed and working. However, my users can still access the site without the https. How do I make sure that all urls are accessed using https?
Thanks
Edit:
I've tried adding this to application_controller.rb
before_filter :redirect_to_ssl
def redirect_to_ssl
redirect_to url_for params.merge({:protocol => 'https://'})
end
But I receive a Error 310 (net::ERR_TOO_MANY_REDIRECTS)
error.