getting started!
git-svn-id: https://rubycas-server.googlecode.com/svn/trunk@2 fffcb96a-a727-0410-ad3e-7b35c796b8d7
This commit is contained in:
Родитель
a107cf3f7f
Коммит
007fa753ad
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>rubycas-server</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.rubypeople.rdt.core.rubybuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.rubypeople.rdt.core.rubynature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче