1
0
Fork 0
oldhaven/app/controllers/page_controller.rb

24 lines
488 B
Ruby
Raw Normal View History

2011-11-27 08:41:28 +00:00
class PageController < ApplicationController
def index
# Something
end
def greetings
2011-11-27 09:56:10 +00:00
compile_page(partial: "page/greetings", title: t("title.greetings"))
2011-11-27 08:41:28 +00:00
end
def about
2011-11-27 09:56:10 +00:00
compile_page(partial: "page/about", title: t("title.about"))
2011-11-27 08:41:28 +00:00
end
def stat
2011-11-27 09:56:10 +00:00
data = {
artists: Artist.count,
albums: Album.count,
tracks: Track.count,
users: User.count
}
compile_page(data: data, partial: "page/stat", title: t("title.stat"))
2011-11-27 08:41:28 +00:00
end
end