Announcement

Collapse
No announcement yet.

How to Enable SSL in Rail Application ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Thread bookmarked for future reference, Thanks.

    Comment

    Working...
    X