def create_blog_section
      @section = Cms::Section.find_by_name(@blog.name) || (
        @section = Cms::Section.create!(
          :name => @blog.name,
          :path => "/#{@blog.name_for_path}",
          :parent => Cms::Section.root.first
        )
        @section.allow_groups = :all
        @section.save!
        @section
      )
    end
def create_blog_section
      @section = Cms::Section.find_by_name(@blog.name) || (
        @section = Cms::Section.create!(
          :name => @blog.name,
          :path => "/#{@blog.name_for_path}",
          :parent => Cms::Section.root.first
        )
        @section.allow_groups = :all
        @section.save!
        @section
      )
    end
Every blog is created within a section with the same name.
 For example, if you create a blog named 'MyBlog', a section 'MyBlog' will be
 created. This section will hold two pages: one for the blog ContentBlock that
 will render the list of posts and one for the BlogPost portlet (ie the individual
 post view)