Created
November 1, 2014 04:46
-
-
Save marocchino/e675010acb2c1f13844d to your computer and use it in GitHub Desktop.
This file contains 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
post "/reservation" do | |
# get duedate from event | |
if duedate < Time.now | |
# submit | |
else | |
redirect "/form?error_code=1", 303 | |
end | |
end | |
get "/form" do | |
if params[:error_code] | |
@error_message = .... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment