Skip to content

Instantly share code, notes, and snippets.

@kematzy
Created August 1, 2008 14:43
Show Gist options
  • Save kematzy/3627 to your computer and use it in GitHub Desktop.
Save kematzy/3627 to your computer and use it in GitHub Desktop.
## I think these minor changes should fix some of the issues,
diff --git a/irclogger.rb b/irclogger.rb
index 7f5a1fb..b78be3b 100644
--- a/irclogger.rb
+++ b/irclogger.rb
@@ -57,6 +57,7 @@ get '/' do
end
get '/:channel/' do
+ @channel = params[:channel]
redirect "/#{@channel}/#{relative_day('today')}"
end
diff --git a/views/index.erb b/views/index.erb
index d9faee9..ca22a38 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -1,2 +1,2 @@
-Go to /sinatra for logs of #sinatra!
+<p>Go to <a href="http://irclogger.com/sinatra/">/sinatra/</a> for logs of #sinatra!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment