diff --git a/theweb.rb b/theweb.rb index a531ce4..32ddd02 100644 --- a/theweb.rb +++ b/theweb.rb @@ -5,7 +5,11 @@ enable :sessions get '/' do - erb :dashboard + erb :about +end + +get '/about.erb' do + erb :about end post '/number' do @@ -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 \ No newline at end of file diff --git a/views/about.erb b/views/about.erb new file mode 100644 index 0000000..47cc088 --- /dev/null +++ b/views/about.erb @@ -0,0 +1,5 @@ +

About


+

Hi, I'm Mike Adeleke. I am a college student at Indiana University and Co-founder at Domi. We're making college housing easy. I'm using the skills I'm learning from Ruby off Rails to become a better developer as I am right now the only one.


+

I enjoy startups, soccer, programming, and have a love of learning. This month: customer development and growth hacking.

+ +

My likes <%= @likes %>

diff --git a/views/likes.rb b/views/likes.rb new file mode 100644 index 0000000..d07554b --- /dev/null +++ b/views/likes.rb @@ -0,0 +1,2 @@ +

OH HAI THERE

+

The number is <%= @likes %>