<% if can? :update, investment %> <%= edit_link %> <% end %> <% if can? :destroy, investment %> <%= destroy_button %> <% end %>