2013-01-25 10:12:25 +00:00
|
|
|
<h1>Listing certifications</h1>
|
|
|
|
|
2013-01-25 13:01:02 +00:00
|
|
|
<%= link_to 'Create Certification', new_certification_path if can? :create, Certification %>
|
2013-01-25 10:12:25 +00:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @certifications.each do |certification| %>
|
|
|
|
<li><%= link_to certification.name, certification %>
|
|
|
|
<% if can? :update, certification %> | <%= link_to 'Edit', edit_certification_path(certification) %><% end %>
|
2013-01-26 01:21:42 +00:00
|
|
|
<% if can? :destroy, certification %> | <%= link_to 'Destroy', certification, :confirm => 'Are you sure?', :method => :delete %><% end %>
|
2013-01-25 10:12:25 +00:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|