# https protocol... forcing for a controller...

**URL:** <https://discuss.rubyonrails.org/t/https-protocol-forcing-for-a-controller/11182>\
**Category:** rubyonrails-talk\
**Created:** [April 3, 2007, 12:37am UTC](https://discuss.rubyonrails.org/t/https-protocol-forcing-for-a-controller/11182 "2007-04-03T00:37:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JESii](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/jesii/32/12076_2.png) [@JESii](https://discuss.rubyonrails.org/u/JESii)\
**Post date:** [April 3, 2007, 12:37am UTC](https://discuss.rubyonrails.org/t/https-protocol-forcing-for-a-controller/11182/1 "2007-04-03T00:37:59Z")

</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
