title: Rails force ssl only on specified controllers
body: <p>I have a ssl certificate which serves <a href="https://secure.mydomain.com" rel="nofollow">https://secure.mydomain.com</a>. I would like to use ssl only on certain controllers and not throughout my entire application. I have looked online and can't seem to find a complete and accurate tutorial on how to enable ssl for specified controllers. </p>
  
  <p>I am aware that I can use the config ssl below but it does not serve me a purpose since it enables ssl site wide</p>
  
  <pre><code>config.force_ssl = true
  </code></pre>
  
  <p>How can I tell rails to only use ssl on a specific controller rather then my entire application?</p>