# Https protocol... forcing for a controller

**URL:** <https://www.ruby-forum.com/t/https-protocol-forcing-for-a-controller/90930>\
**Category:** Rails\
**Created:** [April 3, 2007, 2:39am UTC](https://www.ruby-forum.com/t/https-protocol-forcing-for-a-controller/90930 "2007-04-03T02:39:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jseidel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jseidel](https://www.ruby-forum.com/u/jseidel)\
**Post date:** [April 3, 2007, 2:39am UTC](https://www.ruby-forum.com/t/https-protocol-forcing-for-a-controller/90930/1 "2007-04-03T02:39:05Z")

</div>

I need to secure a portion of my applicaction using SSL/https. I have  
downloaded ssl\_requirement which works fine if there are a few  
discrete methods in a controller. However, one of my controllers uses  
a display/UI plugin that has many, many methods and I would like to be  
able to just say that this controller must always use https…

Is there any straight-forward way or parameter to orce this one  
controller to use SSL always? Having to redirect every call (which is  
what ssl\_requirement does) would be very slow and cumbersome.

Thanks…jon
