Skip to content

Commit 7c098a4

Browse files
committed
finished part schneems#4 of schneems ruby view server homework assignemnt added copied lines to simple_server
1 parent a1060ea commit 7c098a4

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3> I'm a header</h3>
1616
<h1> Hello</h1>
1717
<p>
1818
The time is now:
19-
2013-02-21 23:53:24 -0500
19+
2013-02-21 23:59:04 -0500
2020
</p>
2121

2222
<p>

public/stephensview.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ <h1> Stephen's example page for schneems homework </h1>
3636
HELLO THIS WAS WRITTEN IN ALL DOWNCASE AND NOW SHOULD BE CONVERTED TO A UPCASE STRING VIA THE UPCASE METHOD
3737
<br>
3838
2
39+
<p> Whats going on down under?""
3940
</ul>
4041
</div>
4142
<hr />

server_simple.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@
1010
## Capture control+c to shut down the server
1111
trap 'INT' do server.shutdown end
1212

13+
#this file was added in teh schneems readme. He told me to do itdef !(
14+
server.mount_proc '/' do |req, res|
15+
res.body = 'Hello, world!'
16+
end
17+
18+
1319
## Start the server
1420
server.start

views/stephensview.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
<%= x.upcase %>
1414
<br>
1515
<%= 1+1 %>
16+
<p> Whats going on down under?""
1617
</ul>

0 commit comments

Comments
 (0)