Hi Sean,
Briefly, you need to pass the collection of cards into a view (like list.rhtml) and within that view iterate through the collection and generate a partial for each card. Keep track of the 'card number' and use it to assign the divs' ids. So your partial will have a line like...
<div id=<%= @card_num.to_s %> class='card'>
Got to run for now. Holler back if you need more help.
ill