Skip to content

Commit 0f2b45a

Browse files
committed
schneems#4 Finished.
1 parent 8ee647e commit 0f2b45a

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

public/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ <h3> I'm a header</h3>
77
<p>Navigation:</p>
88
<a href='index.html'>Home</a>
99
<a href='me.html'>Me</a>
10+
<a href='http://www.kylegracey.com'>Portfolio</a>
1011
</div>
1112
<hr />
1213
<div>
1314
<h1> Hello</h1>
1415
<p>
1516
The time is now:
16-
2013-04-13 14:28:50 -0500
17+
2013-04-13 14:33:25 -0500
1718
</p>
1819

1920
<p>

public/me.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ <h3> I'm a header</h3>
77
<p>Navigation:</p>
88
<a href='index.html'>Home</a>
99
<a href='me.html'>Me</a>
10+
<a href='http://www.kylegracey.com'>Portfolio</a>
1011
</div>
1112
<hr />
1213
<div>

server_simple.rb

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

13+
## Adding from homework instructions
14+
server.mount_proc '/' do |req, res|
15+
res.body = 'Hello, world!'
16+
end
17+
1318
## Start the server
1419
server.start

views/layouts/application.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<p>Navigation:</p>
1212
<%= link_to('Home', 'index.html') %>
1313
<%= link_to('Me', 'me.html') %>
14+
<%= link_to('Portfolio', 'http://www.kylegracey.com') %>
1415
</div>
1516
<hr />
1617
<div>

0 commit comments

Comments
 (0)