Posted By

deschism on 10/19/09


Tagged

rails helper


Versions (?)

Rails DOM helper id


 / Published in: Rails
 

creates something like list_49 with the 49 corresponding to id of record in database.

  1. <% @lists.each do |list| %>
  2. <div id="<%= dom_id(list) %>">
  3. ... rest of list ...
  4. </div>
  5. <% end %>

Report this snippet  

You need to login to post a comment.