Hi! I have decided to go ahead with HAML and in some ways it feels
natural,
and in others I feel I am missing something important. Here’s my
question du
jour:
I have a list of catalog items each of which people can add to a cart.
When
they add an item, I want a little snippet below the item image to update
the
count of that item. E.g. (7 pairs of these shoes in your cart). I’m
using
link_to_remote and rjs to update, but it requires that I have
programmatically named DOM elements. Such as:
I don’t see how to explain to HAML that I want to specify the id at
runtime.
%item{:id => ???}
doesn’t give me an opportunity to evaluate an expression as the list
item is
being evaluated. How are others solving this problem?
Thanks
View this message in context:
http://www.nabble.com/HAML-and-Ajax-in-Lists-tf2341662.html#a6517355
Sent from the RubyOnRails Users mailing list archive at Nabble.com.