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><a id="item1"></a></li><li><a
id="item2"></a></li><li><a
id="item3"></a></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. 
--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><a id="item1"></a></li><li><a
id="item2"></a></li><li><a
id="item3"></a></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/