From 7c098a4d10074c59c771be78874d99b8dd383f01 Mon Sep 17 00:00:00 2001 From: Stephen Nguyen Date: Fri, 22 Feb 2013 00:01:40 -0500 Subject: [PATCH] finished part #4 of schneems ruby view server homework assignemnt added copied lines to simple_server --- public/index.html | 2 +- public/stephensview.html | 1 + server_simple.rb | 6 ++++++ views/stephensview.html.erb | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index fbb412c..462070d 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@

I'm a header

Hello

The time is now: - 2013-02-21 23:53:24 -0500 + 2013-02-21 23:59:04 -0500

diff --git a/public/stephensview.html b/public/stephensview.html index 718f33d..15b1911 100644 --- a/public/stephensview.html +++ b/public/stephensview.html @@ -36,6 +36,7 @@

Stephen's example page for schneems homework

HELLO THIS WAS WRITTEN IN ALL DOWNCASE AND NOW SHOULD BE CONVERTED TO A UPCASE STRING VIA THE UPCASE METHOD
2 +

Whats going on down under?""


diff --git a/server_simple.rb b/server_simple.rb index fa8e425..57506c4 100644 --- a/server_simple.rb +++ b/server_simple.rb @@ -10,5 +10,11 @@ ## Capture control+c to shut down the server trap 'INT' do server.shutdown end + #this file was added in teh schneems readme. He told me to do itdef !( + server.mount_proc '/' do |req, res| + res.body = 'Hello, world!' + end + + ## Start the server server.start \ No newline at end of file diff --git a/views/stephensview.html.erb b/views/stephensview.html.erb index d739e23..c016291 100644 --- a/views/stephensview.html.erb +++ b/views/stephensview.html.erb @@ -13,4 +13,5 @@ <%= x.upcase %>
<%= 1+1 %> +

Whats going on down under?"" \ No newline at end of file