Present the blog post's meta information now. This will require refinerycms-core 1.0.0

This commit is contained in:
Philip Arndt 2011-05-06 00:48:22 +12:00
parent 45bbd56a51
commit 37de337eaf
2 changed files with 4 additions and 4 deletions

View file

@ -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