rails content_tag nav builder helper
Sorry if this sounds obvious but i'm getting confused.
I'm trying to build a navigation list helper.

At the moment it receives a list of links from an array.

    module ApplicationHelper
      def site_pages
        %w{index about contact promotions}
      end
      
      def nav_builder list     
        list.map do |l|
          content_tag :li do
            content_tag :a, :href => "#" do
              "test"
            end
          end
        end
      end
    end

But when I run the page it ouput everything is the page as an array.

    ["<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>"]

instead of displaying a list of links.
Is there anything special to do?
rails content_tag nav builder helper
===

Sorry if this sounds obvious but i'm getting confused.
I'm trying to build a navigation list helper.

At the moment it receives a list of links from an array.

    module ApplicationHelper
      def site_pages
        %w{index about contact promotions}
      end
      
      def nav_builder list     
        list.map do |l|
          content_tag :li do
            content_tag :a, :href => "#" do
              "test"
            end
          end
        end
      end
    end

But when I run the page it ouput everything is the page as an array.

    ["<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>", "<li><a href=\"test\">test</a></li>"]

instead of displaying a list of links.
Is there anything special to do?