Sha256: 2e5877b02103c0fcfad6cbb4bd67708ddc48e44b798a45d3efa1702af00d07e1
Contents?: true
Size: 919 Bytes
Versions: 8
Compression:
Stored size: 919 Bytes
Contents
<% if controller.send(:admin_data_is_allowed_to_update?) %> <% @help = link_to('[?]','http://neerajdotname.github.com/admin_data/#deletevs-destroy') %> <div class="block rounded"> <h3>Modify Record</h3> <div style='padding-left:15px'> <p> <%= link_to 'Edit', edit_admin_data_on_k_path(:klass => klass.name.underscore, :id => model) %> </p> <p> <%= link_to 'Delete', del_admin_data_on_k_path(:klass => klass.name.underscore, :id => model) , { :confirm => ' You are deleting (not destroying) a record. Are you sure?', :method => :delete} %> <%= @help %> </p> <p> <%= link_to "Destroy", admin_data_on_k_path(:klass => klass.name.underscore, :id => model), { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %> <%= @help %> </p> </div> </div> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems