Sha256: 3898752c2533f175e76ebe90ce1d5d67bdb29fe19facd6439c358fcb14959c3a
Contents?: true
Size: 920 Bytes
Versions: 11
Compression:
Stored size: 920 Bytes
Contents
<% if controller.send(:admin_data_is_allowed_to_update?) %> <% @help = link_to('[?]','http://neerajdotname.github.com/admin_data/#delete_vs_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
11 entries across 11 versions & 1 rubygems