Stats page

This commit is contained in:
Gregory Eremin
2011-10-24 14:15:00 +04:00
parent 50b5396f11
commit 2eec07dc4d
10 changed files with 66 additions and 1 deletions
@@ -15,6 +15,14 @@ class ApplicationController < ActionController::Base
render partial: 'about'
end
def stat
@artists = Artist.count
@albums = Album.count
@tracks = Track.count
@users = User.count
render partial: 'stat'
end
protected
def authorize