Ruby on Rails
HowToEnableSSL

To enable SSL in your rails app, do the following:

Optional: If you wish to force SSL for all actions in a controller or for the entire application, add the following function to the controller_controller.rb or application_controller.rb, respectively:


def ssl_required?
  true
end

more: