How can I generate a unique dom id for a html tag from model

Viewed 5104

I am having an index view with several rows for items which have multiple attributes. I would like to update the content of an items attribute with ajax, therefore I need a unique dom id. Is there a helper method available? What I am doing right now is:

<span id="<%=  item.id.to_s + "_on_storage"%>">

Best, Phil

2 Answers
Related