% if controller.send(:is_allowed_to_update?) %>
<%= link_to 'Edit', admin_data_edit_path(:klass => klass.name.underscore, :id => model.id) %>
<%= link_to 'Delete', admin_data_del_path(:klass => klass.name.underscore, :id => model.id) , { :confirm => ' You are deleting (not destroying) a record. Are you sure?', :method => :delete} %>
<%= link_to "Destroy", admin_data_path(:klass => klass.name.underscore, :id => model.id), { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %>