
06-19-2006, 10:55 PM
|
|
Member
|
|
Join Date: Jun 2006
Posts: 11
|
|
Quote:
|
Originally Posted by mistwang
That header will be added automatically by LSWS 2.1.17. The new release will be announced soon. Actaully, you can downalod it now.
|
Thank you very much. You made my day Just for the record (maybe can help somebody) - what I'm doing in the moment:
Code:
# app/controller/application.rb
def require_ssl
env['HTTPS'] = 'on' unless (@request.ssl? or local_request?)
end
# app/controller/othercontroller.rb
before_filter :require_ssl
# or: before_filter :require_ssl, :only => [:some_action]
# or: before_filter :require_ssl, :except => [:some_action]
|