diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/blog/posts_controller.rb | 6 |
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 |