How to Enable SSL in Rail Application ?
In order to enable SSL in RAIL application, you need to run ruby script/plugin install ssl_requirement. Then Add include SSL Requirement to your Application Controller which is basically located in app/controller/application_controller.rb
In order to force SSL, you will need to add the line ssl_required :action1, :action2 to top of controller class. For controller that needs to allow but does not require SSL, you need to add the line ssl_allowed :action1, :action2 to the controller.
In order for force SSL, you need to add the function : controller_controller.rb or application_controller.rb
__________________
Mod's please don't look for my signature. I don't have one...
|