# Markaby Problem

**URL:** <https://www.ruby-forum.com/t/markaby-problem/123419>\
**Category:** Ruby\
**Created:** [December 17, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/markaby-problem/123419 "2007-12-17T15:16:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [December 17, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/markaby-problem/123419/1 "2007-12-17T15:16:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [December 17, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/markaby-problem/123419/2 "2007-12-17T16:25:17Z")

</div>

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. 🙂

–Jeremy

On Dec 17, 2007 9:21 AM, Christian K.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My books:  
Ruby in Practice

> **[Ruby in Practice](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale environments. A cookbook-style reference, it gives you concrete examples of systems...

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)
