app/controllers/blog_controller.rb in spud_blog-0.5.0 vs app/controllers/blog_controller.rb in spud_blog-0.5.1

- old
+ new

@@ -24,10 +24,11 @@ def category if @post_category = SpudPostCategory.find_by_url_name(params[:category_url_name]) @posts = @post_category.posts_with_children.public_blog_posts(params[:page], Spud::Blog.config.posts_per_page).from_archive(params[:archive_date]) else - @posts = [] + redirect_to blog_path + return end respond_with @posts do |format| format.html { render 'index' } end end \ No newline at end of file