def index
    all_blocks = Block.all
    @blocks = Array.new
    all_blocks.each do |block|
      if block.parent == 0