app/views/creates/_index.html.erb
<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.create')) -%></h1>
<div id="content_list">
<table class="index">
<tr>
<th><%= t('activerecord.models.agent') -%></th>
<th><%= t('activerecord.models.work') -%></th>
</tr>
<%- @creates.each do |create| -%>
<tr class="line<%= cycle("0", "1") -%>">
<td><%= link_to create.agent.full_name, create.agent -%></td>
<td><%= link_to create.work.original_title, create.work -%></td>
<%- if can? :destroy, create -%>
<td><%= link_to t('page.show'), create -%></td>
<td><%= link_to t('page.destroy'), create, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
<%- end -%>
</tr>
<%- end -%>
</table>
<%= paginate(@creates) -%>
</div>
</div>
<div id="submenu" class="ui-corner-all">
<%- if can? :create, Create -%>
<ul>
<li><%= link_to t('page.new', :model => t('activerecord.models.create')), new_create_path -%></li>
</ul>
<%- end -%>
</div>