aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-05-06 00:48:22 +1200
committerPhilip Arndt <parndt@gmail.com>2011-05-06 00:48:22 +1200
commit37de337eaf2e75696011f9ef56a2f9a993ec0679 (patch)
tree98cee350aa5648a2ce73e1104745fe5b059fa7c9 /app
parent45bbd56a51c6793af576198a2e9137cfcb88f30b (diff)
downloadrefinerycms-blog-37de337eaf2e75696011f9ef56a2f9a993ec0679.tar.gz
refinerycms-blog-37de337eaf2e75696011f9ef56a2f9a993ec0679.tar.bz2
refinerycms-blog-37de337eaf2e75696011f9ef56a2f9a993ec0679.zip
Present the blog post's meta information now. This will require refinerycms-core 1.0.0
Diffstat (limited to 'app')
-rw-r--r--app/controllers/blog/posts_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb
index 9c413ed..6b59867 100644
--- a/app/controllers/blog/posts_controller.rb
+++ b/app/controllers/blog/posts_controller.rb
@@ -17,7 +17,7 @@ class Blog::PostsController < BlogController
@blog_comment = BlogComment.new
respond_with (@blog_post) do |format|
- format.html { present(@page) }
+ format.html { present(@blog_post) }
format.js { render :partial => 'post', :layout => false }
end
end
@@ -65,7 +65,7 @@ class Blog::PostsController < BlogController
end
respond_with (@blog_posts)
end
-
+
def tagged
@tag_name = params[:tag_name]
@blog_posts = BlogPost.tagged_with(@tag_name.titleize).paginate({
@@ -92,7 +92,7 @@ protected
:per_page => RefinerySetting.find_or_set(:blog_posts_per_page, 10)
})
end
-
+
def find_tags
@tags = BlogPost.tag_counts_on(:tags)
end