def bulk_update
      notice = Post.bulk_update params, 'posts'

      respond_to do |format|
        format.html { redirect_to admin_articles_path, notice: notice }
      end
    end
def bulk_update
      notice = Post.bulk_update params, 'posts'

      respond_to do |format|
        format.html { redirect_to admin_articles_path, notice: notice }
      end
    end
Takes all of the checked options and updates them with the given option selected.
 The options for the bulk update in pages area are:-
 - Publish
 - Draft
 - Move to trash