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