Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions theweb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
erb :dashboard
end

get '/about' do
erb :about
end
post '/number' do
@number_of_randoms = session[:number_of_randoms] || 0
@number_of_randoms += 1
Expand Down
3 changes: 3 additions & 0 deletions views/about.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>ABOUT ME!</h1>
<body>Hello, my name is Adam. I live in Pasadena, California. I am having fun learning with Ruby Off Rails. My goal is to become a professional developer.
</body>
2 changes: 1 addition & 1 deletion views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="/about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
Expand Down