aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/refinery/blog_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/refinery/blog_controller.rb')
-rw-r--r--app/controllers/refinery/blog_controller.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/refinery/blog_controller.rb b/app/controllers/refinery/blog_controller.rb
new file mode 100644
index 0000000..6bec0a5
--- /dev/null
+++ b/app/controllers/refinery/blog_controller.rb
@@ -0,0 +1,18 @@
+module Refinery
+ class BlogController < ::ApplicationController
+
+ helper :blog_posts
+ before_filter :find_page, :find_all_blog_categories
+
+ protected
+
+ def find_page
+ @page = Refinery::Page.find_by_link_url("/blog")
+ end
+
+ def find_all_blog_categories
+ @blog_categories = Refinery::BlogCategory.all
+ end
+
+ end
+end