View Single Post
  #1 (permalink)  
Old 20-11-2008, 19:07
shane shane is offline
Administrator
 
Join Date: Sep 2006
Posts: 142
Default 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
__________________
.....aaahh...some1 jst shot me :P
Reply With Quote