Browse Source

Added 404 Not Found page

tags/last-sinatra-version
Adrian Short 14 years ago
parent
commit
b444ba7a84
2 changed files with 11 additions and 0 deletions
  1. +4
    -0
      app.rb
  2. +7
    -0
      views/not_found.haml

+ 4
- 0
app.rb View File

@@ -65,3 +65,7 @@ end
get '/aliens' do
haml :aliens
end

not_found do
haml :not_found
end

+ 7
- 0
views/not_found.haml View File

@@ -0,0 +1,7 @@
.grid_9
%h1 Not Found
%p Oops, we can't find that page.
%p
%a{ :href => '/' }Go back to the home page

Loading…
Cancel
Save