Permalink
Browse files

That's one small step for a man, one giant leap for mankind

  • Loading branch information...
0 parents commit 58b8603e05100cc2a8298d108188abf5c78b42c8 @thomaspierson thomaspierson committed Jan 4, 2012
Showing with 20 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +12 −0 hi.rb
  3. +7 −0 views/index.haml
@@ -0,0 +1 @@
+*~
12 hi.rb
@@ -0,0 +1,12 @@
+require 'sinatra'
+
+get '/' do
+ haml :index
+end
+
+post('/farandole') do
+ if params[:css].empty?
+ redirect '/'
+ end
+ "Voila: #{params[:css]} !"
+end
@@ -0,0 +1,7 @@
+%form{ :action => "farandole", :method => "post"}
+ %fieldset
+ %ol
+ %li
+ %label{:for => "css"} Message:
+ %textarea{:name => "css"}
+ %input{:type => "submit", :value => "Go", :class => "button"}

0 comments on commit 58b8603

Please sign in to comment.