<% top_items = drawer.menu&.items&.select { |i| eq(i.position, :top) } bottom_items = drawer.menu&.items&.select { |i| eq(i.position, :bottom) } %>