You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class Home::PlatformStatisticsController < ApplicationController
-
- def index
- @platform_statistic = PlatformStatistic.data
- @project_statistic = ProjectStatistic.data
- @platform_statistic.increment!(:visits)
- @tasks_count = ActiveRecord::Base.connection.exec_query("SELECT COUNT(*) FROM tasks").rows[0][0]
- @memos_count = ActiveRecord::Base.connection.exec_query("SELECT COUNT(*) FROM memos").rows[0][0]
- end
- end
|