Skip to content

have some questions... #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
11 changes: 10 additions & 1 deletion theweb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
enable :sessions

get '/' do
erb :dashboard
erb :about
end

get '/about.erb' do
erb :about
end

post '/number' do
Expand All @@ -16,3 +20,8 @@
@the_number = rand(number_as_string)
erb :number
end

post '/likes' do
@likes = ["Soccer", "Startups", "Programming", "Paul Graham", "Silicon Valley", "Disruption"].sample
erb :about
end
5 changes: 5 additions & 0 deletions views/about.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h1>About</h1><br>
<p>Hi, I'm Mike Adeleke. I am a college student at Indiana University and Co-founder at <a href="http://unbouncepages.com/domi/">Domi</a>. We're making college housing easy. I'm using the skills I'm learning from <a href="https://rubyoffrails.com/">Ruby off Rails</a> to become a better developer as I am right now the only one.</p><br>
<p>I enjoy startups, soccer, programming, and have a love of learning. This month: customer development and growth hacking.</p>

<h2>My likes <%= @likes %></h2>
2 changes: 2 additions & 0 deletions views/likes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>OH HAI THERE</h1>
<h2>The number is <%= @likes %></h2>