Class: Enki::Admin::DashboardController
- Inherits:
-
BaseController
- Object
- ApplicationController
- Enki::ApplicationController
- BaseController
- Enki::Admin::DashboardController
- Defined in:
- app/controllers/enki/admin/dashboard_controller.rb
Instance Method Summary collapse
Methods included from HostHelper
Methods included from UrlHelper
#author_link, #post_comments_path, #post_path
Methods included from TagHelper
Methods included from PostsHelper
Methods included from PageTitleHelper
#archives_title, #html_title, #page_title, #post_title, #posts_title
Methods included from NavigationHelper
#category_links_for_navigation, #class_for_tab, #page_links_for_navigation
Methods included from FormHelper
Methods included from DateHelper
#format_comment_date, #format_month, #format_post_date
Methods included from Enki::ApplicationHelper
#author, #comments?, #format_comment_error, #paginated, #tags?
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/enki/admin/dashboard_controller.rb', line 4 def show @posts = Post.find_recent(:limit => 8) @pages = Page.limit(8) @comment_activity = CommentActivity.find_recent if comments? @stats = Stats.new end |