From 007fa753adaff0c04fff2e271fc1f6354bda0313 Mon Sep 17 00:00:00 2001 From: "matt.zukowski" Date: Mon, 22 Jan 2007 21:14:35 +0000 Subject: [PATCH] getting started! git-svn-id: https://rubycas-server.googlecode.com/svn/trunk@2 fffcb96a-a727-0410-ad3e-7b35c796b8d7 --- .project | 17 +++++++++++++++++ casserver.rb | 28 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .project create mode 100644 casserver.rb diff --git a/.project b/.project new file mode 100644 index 0000000..6d712e0 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + rubycas-server + + + + + + org.rubypeople.rdt.core.rubybuilder + + + + + + org.rubypeople.rdt.core.rubynature + + diff --git a/casserver.rb b/casserver.rb new file mode 100644 index 0000000..a616da2 --- /dev/null +++ b/casserver.rb @@ -0,0 +1,28 @@ +require 'camping' + +Camping.goes :CasServer + +module CasServer +end + +module CasServer::Controllers + class Login < R '/' + def get + @server = "URBACON" + render :login + end + end +end + +module CasServer::Views + def layout + html do + title { 'My HomePage' } + body { self << yield } + end + end + + def login + h1 { "test" } + end +end \ No newline at end of file