Markaby Problem

Hey!

I’d like to render a unnumbered list using the markaby gem.

this list needs to hold links.

I’ve tried the following:

markaby.ul :id =>‘mainnavigation’ do

items.each do |item|

  li a :id=> item

end

end

But it renders:

  • <a id="item1"></a>
  • <a id="item2"></a>
  • <a id="item3"></a>

all the link tags have a wrong encoding.

How do i fix that?

thx

Hm that’s odd. I think you need to do this:

markaby.ul :id =>‘mainnavigation’ do

items.each do |item|

 li { a :id=> item }

end

end

Not sure if that will work, but I think it will. :slight_smile:

–Jeremy

On Dec 17, 2007 9:21 AM, Christian K.
[email protected] wrote:

items.each do |item|
id=“item2”></a>

  • <a


  • http://www.jeremymcanally.com/

    My books:
    Ruby in Practice

    My free Ruby e-book

    My blogs:

    http://www.rubyinpractice.com/