Permalink
Browse files

updating linking

  • Loading branch information...
1 parent 9c010b4 commit 0a8b294cc127a9a81eb6b15dccb938bb076e9834 @holman committed Jul 21, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 roflclicks.rb
View
@@ -1 +1 @@
-roflclicks.db
+roflclicks.sqlite3
View
@@ -21,7 +21,7 @@ def number_with_delimiter(number, *args)
end
get '/' do
- db = SQLite3::Database.new("roflclicks.db")
+ db = SQLite3::Database.new("roflclicks.sqlite3")
db.execute("update clicks set total = total+1")
@total = number_with_delimiter db.get_first_row("select total from clicks").first.to_i
haml "index_#{(1..@@total_views).to_a[rand(@@total_views)]}".to_sym

0 comments on commit 0a8b294

Please sign in to comment.