Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

About page.

  • Loading branch information...
commit 6493689cbec3d17a14dfd37f34efbf513233d957 1 parent e963c94
@marano authored
Showing with 6 additions and 0 deletions.
  1. +4 −0 controller.rb
  2. +2 −0  views/about.slim
View
4 controller.rb
@@ -35,6 +35,10 @@ def blog
slim :home
end
+ get '/about' do
+ slim :about
+ end
+
get '/article/:id' do
@article = blog.find_article_by_id(params[:id])
slim :article
View
2  views/about.slim
@@ -0,0 +1,2 @@
+h1
+ | About
Please sign in to comment.
Something went wrong with that request. Please try again.