how about [EMAIL PROTECTED], 'updated_at'] ? On Feb 12, 10:55 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > The core problem with this is that all Haml sees is the evaluated Ruby > code within the brackets. When you say [EMAIL PROTECTED] or > [EMAIL PROTECTED]:updated_at]], all Haml gets is the Date object. It doesn't > know > what object it came from, and it doesn't know the name of the method/key > used to get the value... it just knows about the Date. > > - Nathan > > > > Drew Sears wrote: > > good point. i guess you could use @item[:updated_at] to avoid > > behavioral ambiguity. the 5 is just @item.id. 'item_5_updated_at' > > would work equally well, if that's the preferable convention.- Hide quoted > > text - > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
