Skip to content

Commit

Permalink
finished part schneems#4 of schneems ruby view server homework assign…
Browse files Browse the repository at this point in the history
…emnt added copied lines to simple_server
  • Loading branch information
Stephenitis committed Feb 22, 2013
1 parent a1060ea commit 7c098a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h3> I'm a header</h3>
<h1> Hello</h1>
<p>
The time is now:
2013-02-21 23:53:24 -0500
2013-02-21 23:59:04 -0500
</p>

<p>
Expand Down
1 change: 1 addition & 0 deletions public/stephensview.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ <h1> Stephen's example page for schneems homework </h1>
HELLO THIS WAS WRITTEN IN ALL DOWNCASE AND NOW SHOULD BE CONVERTED TO A UPCASE STRING VIA THE UPCASE METHOD
<br>
2
<p> Whats going on down under?""
</ul>
</div>
<hr />
Expand Down
6 changes: 6 additions & 0 deletions server_simple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions views/stephensview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
<%= x.upcase %>
<br>
<%= 1+1 %>
<p> Whats going on down under?""
</ul>

0 comments on commit 7c098a4

Please sign in to comment.