aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin/blog/posts_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/blog/posts_controller.rb')
-rw-r--r--app/controllers/admin/blog/posts_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/admin/blog/posts_controller.rb b/app/controllers/admin/blog/posts_controller.rb
index bd5dd49..1b6efc3 100644
--- a/app/controllers/admin/blog/posts_controller.rb
+++ b/app/controllers/admin/blog/posts_controller.rb
@@ -3,6 +3,13 @@ class Admin::Blog::PostsController < Admin::BaseController
crudify :blog_post,
:title_attribute => :title,
:order => 'published_at DESC'
+
+ def uncategorized
+ @blog_posts = BlogPost.uncategorized.paginate({
+ :page => params[:page],
+ :per_page => BlogPost.per_page
+ })
+ end
before_filter :find_all_categories,
:only => [:new, :edit, :create, :update]