mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
18 lines
282 B
Ruby
18 lines
282 B
Ruby
class DashboardController < ApplicationController
|
|
before_filter :deny_to_visitors
|
|
|
|
def index
|
|
@results = Result.page(params[:page]).per(5)
|
|
|
|
end
|
|
|
|
def deny_to_visitors
|
|
redirect_to "/signin" unless user_signed_in?
|
|
end
|
|
|
|
def statistics
|
|
|
|
end
|
|
|
|
end
|