Permalink
Browse files

test ssl in test_controller

  • Loading branch information...
1 parent c2d5839 commit 0ee1c9179425559f0bc84d0354fe654c4af96627 @labria committed Feb 23, 2008
Showing with 8 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 app/controllers/test_controller.rb
View
@@ -4,6 +4,7 @@ tmp/**/*
public/cache/**/*
doc/api
doc/app
+config/database.yml
db/development.sqlite3
db/schema.rb
config/deploy.rb
@@ -1,2 +1,9 @@
class TestController < ApplicationController
+ def index
+ if request.ssl?
+ render :text => "ssl request"
+ else
+ render :text => "non-ssl request"
+ end
+ end
end

0 comments on commit 0ee1c91

Please sign in to comment.