finally someone is answers
rails (2.3.8)
haml (3.0.17)

On Thu, Sep 9, 2010 at 2:34 PM, Nathan Weizenbaum <[email protected]> wrote:

> What versions of Rails and Haml are you using?
>
> On Sat, Sep 4, 2010 at 10:04 AM, radhames brito <[email protected]> wrote:
>
>> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected] <haml%[email protected]>.
>> For more options, visit this group at
>> http://groups.google.com/group/haml?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to