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:

<ul id="mainnavigation"><li>&lt;a id="item1"&gt;&lt;/a&gt;</li><li>&lt;a
id="item2"&gt;&lt;/a&gt;</li><li>&lt;a
id="item3"&gt;&lt;/a&gt;</li></ul>

all the link tags have a wrong encoding.

How do i fix that?

thx

···

--
Posted via http://www.ruby-forum.com/.

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 Kerth <christian.kerth@dynamicmedia.at> wrote:

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:

<ul id="mainnavigation"><li>&lt;a id="item1"&gt;&lt;/a&gt;</li><li>&lt;a
id="item2"&gt;&lt;/a&gt;</li><li>&lt;a
id="item3"&gt;&lt;/a&gt;</li></ul>

all the link tags have a wrong encoding.

How do i fix that?

thx
--
Posted via http://www.ruby-forum.com/\.

--
http://www.jeremymcanally.com/

My books:
Ruby in Practice

My free Ruby e-book

My blogs:

http://www.rubyinpractice.com/