<% if controller.send(:is_allowed_to_update?) %>

Modify Record

<%= link_to 'Edit', admin_data_edit_path(:klass => klass.name.underscore, :id => model) %>

<%= link_to 'Delete', admin_data_del_path(:klass => klass.name.underscore, :id => model) , { :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), { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %>

<% end %>