def render_single(segments, article_url, status)
      # get content - if the admin isn't logged in your add the extra status requirements
      if !current_user.blank? && !params[:admin_preview].blank? && params[:admin_preview] == 'true'
        @content = Post.where("post_type = 'post' AND post_visible = 'Y' AND (post_status = 'Published' OR post_status = 'Draft')").find_by_post_slug(segments[1])
      else
        @content = Post.where(status + " AND post_type = 'post' AND post_visible = 'Y'").find_by_post_slug(segments[1])
      end

      render_404 and return if @content.nil?
      gloalize @content

      # create a new comment object for the comment form
      @new_comment = Comment.new

      # add the necessary breadcrumbs
      add_breadcrumb "#{article_url.capitalize}", "/#{article_url}", :title => I18n.t("helpers.routing_helper.generic.back_to", word: article_url.capitalize)
      add_breadcrumb "#{@content.post_title}", "/#{@content.post_title}", :title => I18n.t("helpers.routing_helper.generic.back_to", word: @content.post_title)

      # render the single template
      render_template 'article'

    end
def render_single(segments, article_url, status)
      # get content - if the admin isn't logged in your add the extra status requirements
      if !current_user.blank? && !params[:admin_preview].blank? && params[:admin_preview] == 'true'
        @content = Post.where("post_type = 'post' AND post_visible = 'Y' AND (post_status = 'Published' OR post_status = 'Draft')").find_by_post_slug(segments[1])
      else
        @content = Post.where(status + " AND post_type = 'post' AND post_visible = 'Y'").find_by_post_slug(segments[1])
      end

      render_404 and return if @content.nil?
      gloalize @content

      # create a new comment object for the comment form
      @new_comment = Comment.new

      # add the necessary breadcrumbs
      add_breadcrumb "#{article_url.capitalize}", "/#{article_url}", :title => I18n.t("helpers.routing_helper.generic.back_to", word: article_url.capitalize)
      add_breadcrumb "#{@content.post_title}", "/#{@content.post_title}", :title => I18n.t("helpers.routing_helper.generic.back_to", word: @content.post_title)

      # render the single template
      render_template 'article'

    end
renders a single article page
 Params:
 +segments+:: an array of the url segments split via "/"
 +article_url+:: is the url extension to show all articles
 +status+:: the general status of the posts