I have a weird problem, i have this code =div_for conection, :class=>"barra01" do Vinculos: =h conection.url %br/ %p =h conection.news = link_to 'Eliminar', conection, :confirm => 'seguro que desea borrar el binculo?', :method => :delete
the output renders the div twice, like this <div class="conection barra01" id="conection_8">Vinculos: http://www.test.com <br /> <p> test 3 </p> <a href="/conections/8" onclick="if (confirm('seguro que desea borrar el binculo?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);f.submit(); };return false;">Eliminar</a> </div><div class="conection barra01" id="conection_8">Vinculos: http://www.test.com <br /> <p> test 3 </p> <a href="/conections/8" onclick="if (confirm('seguro que desea borrar el binculo?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);f.submit(); };return false;">Eliminar</a> </div> but is i remove the div_for i renders the div once as it should, is the same with content tag and it doesnt happed if i use <div id = "conection_<%conection.id%>"> , is there a reason for this? is it a bug? can someone help? -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.