SSL with Ruby on Rails -


Why do I need to get rail traffic on the Ruby app to use the train app? I have a certificate set up and if I manually type in "https: //" in the address bar to reach the site, a little lock icon appears, but manually www.example-app Goes to http and sends traffic through http in your browser: //.

Is there a one-line configuration or is it more complicated than that? I had never compromised before the SLL, so forgive me if I think I do not know what's going on.

I'm hosting a MediaTemle on (GS), if this is the case or

Check this gem.

This lets you specify in your controllers which actions should be served on https and which action may be It will then take care of redirection from http to https.

From the document:

  class ApplicationController & lt; SslRequirement End Class Account Controller in ActiveRecord :: Base & lt; ApplicationController ssl_required: signup, payment: ssl_allowed: index def signup # Non-SSL access will be redirected to SSL end df payment # Non-SSL access will be redirected to SSL and def index # This function will work with or without SEL and DF Other # SSL access will be redirected to non-SSL and end  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -