On Wed, 2007-05-30 at 18:14 +0200, Jérémy Dierx wrote:
> Le mercredi 30 mai 2007 à 18:06 +0200, Fabien Jakimowicz a écrit :
> >> Pour ton exception si tu ne veux pas dom_id :
> "mon-id#{obj.id.to_s}"
> 
> Bein non, c'est un cast en string ça, or replace_html veut un
> fixnum :-S
Heu, replace_html demande un string et non un integer ...
> 
> >> Tu rencontre donc le cas typique d'usage de dom_id : ton
> id="mon-id-<%
> >> =obj.id%>" devient id=<%= dom_id obj %>
> 
> ça me semble pas mal du tout cette soluce, je ne connaissais pas. Je
> vais essayer ça !
> merci Fabien.
> 

-- 
Fabien Jakimowicz <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Répondre à