Created
November 24, 2010 06:02
-
-
Save koko1000ban/713186 to your computer and use it in GitHub Desktop.
arc challengeのまがいもの
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
#arc challengeのまがいもの | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
get '/' do | |
haml(:index) | |
end | |
post '/' do | |
<<-EOF | |
<pre> | |
秘匿 | |
</pre> | |
EOF | |
end | |
__END__ | |
@@index | |
!!! | |
%html | |
%head | |
%meta(charset='UTF-8') | |
%body | |
%form{:method => 'post'} | |
%dl | |
%dt 依頼者の社員番号 | |
%dd | |
%input{:name => 'no', :type => 'text'} | |
%dt 依頼者の名前 | |
%dd | |
%input{:name => 'who', :type => 'text'} | |
%dt 対象システム | |
%dd | |
%textarea{:name => 'target'} | |
%dt 依頼内容 | |
%dd | |
%textarea{:name => 'what'} | |
%dt いつまで? | |
%dd | |
%input{:name => 'when', :type => 'text'} | |
%input{:type => 'submit'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment