Permalink
Browse files

Add timestamp to html output

  • Loading branch information...
1 parent 441685d commit b793be18bac15429986d70978742441c75200986 @rwdaigle committed Jun 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 config.ru
View
@@ -11,8 +11,8 @@ end
class DbReplicationDemoApp < Sinatra::Base
get "/" do
- Hit.create(:ip => request.ip)
- "Hi #{request.ip}"
+ hit = Hit.create(:ip => request.ip)
+ "Hi #{hit.ip} at #{hit.created_at}"
end
end

0 comments on commit b793be1

Please sign in to comment.