You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/06/01 11:55:57 UTC
[whimsy] branch master updated: Docco
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new ea7fe4aa Docco
ea7fe4aa is described below
commit ea7fe4aa38fde69fae5d6918e8ae888b463e67cc
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jun 1 12:55:47 2022 +0100
Docco
---
www/project/icla2/main.rb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/project/icla2/main.rb b/www/project/icla2/main.rb
index d4386b6f..59e79b89 100755
--- a/www/project/icla2/main.rb
+++ b/www/project/icla2/main.rb
@@ -1,13 +1,17 @@
+#!/usr/bin/env ruby
+
require 'sinatra'
get '/' do
erb :index
end
+# The submit button causes a POST to /answer, see below
get '/form' do
erb :form
end
+# The data from the form will be passed parameters as e.g. params[:name]
post '/answer' do
erb :answer
end