title: Force SSL using ssl_requirement in Rails 2 app
body: <p>I have a Rails application which need to run under SSL. I tried ssl_requirement but seems I have to type in all the actions in every controllers.</p>
  
  <p>Is there any method that I can add a before_filter in application controller with ssl_requirement, so that the apps will redirect to https automatically when user request is in http?</p>
  
  <p>Thanks all. :)</p>