diff options
Diffstat (limited to 'app/controllers/blog_controller.rb')
-rw-r--r-- | app/controllers/blog_controller.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb new file mode 100644 index 0000000..0931cbd --- /dev/null +++ b/app/controllers/blog_controller.rb @@ -0,0 +1,15 @@ +class BlogController < ApplicationController + + before_filter :find_page, :find_all_blog_categories + +protected + + def find_page + @page = Page.find_by_link_url("/blog") + end + + def find_all_blog_categories + @blog_categories = BlogCategory.all + end + +end
\ No newline at end of file |