Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Add sorry page for 2012.
Browse files Browse the repository at this point in the history
  • Loading branch information
kakutani committed Jul 29, 2012
1 parent 94aa77a commit 552bd04
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/controllers/teaser_controller.rb
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
class TeaserController < ApplicationController
def _2012
render :file => 'public/2012/404.html', :status => '404', :layout => false
end
end
2 changes: 2 additions & 0 deletions config/routes.rb
@@ -1,4 +1,6 @@
Rubykaigi::Application.routes.draw do
match '/:year' => 'teaser#_2012', :constraints => {:year => '2012'}

scope '/:year/:locale', :constraints => {:year => /2\d{3}/, :locale => /en|ja/} do
match 'registration',
:to => 'registrations#index',
Expand Down
13 changes: 13 additions & 0 deletions public/2012/404.html
@@ -0,0 +1,13 @@
<html>
<head>
<title>RubyKaigi 2012: 404 Kaigi Not Found</title>
</head>
<body>
<h1>404 - Kaigi Not Found</h1>
<div>
<img src="/2012/ruby-san.png" style="display:block" />
<div style="text-align:right"><a href="http://twitpic.com/9tkmx7">http://twitpic.com/9tkmx7</a></div>
</div>

</body>
</html>
Binary file added public/2012/ruby-san.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 552bd04

Please sign in to comment.