I am very new to Ruby and Rails and I am trying to make a modification to a page that is generating the Show, Edit and Delete links for the records using activescaffold. The issue I have is that the page that I am looking at has the links being generated automatically by activescaffold and I need to change only the Delete link to go to another page where I can display a message that will say, You are deleting "option blah blah", Are you sure you want to do that? and give them a cancel and ok button.
My issue at this time is I am not sure where to look for where the links are being generated and hence I am not able to target the new page.
Here is the code that is creating the links
<table cellpadding="0" cellspacing="0">
<tr>
<td class="indicator-container">
<%= loading_indicator_tag(:action => :record, :id => record.id) %>
</td>
<% active_scaffold_config.action_links.each :record do |link| -%>
<% next if controller.respond_to? link.security_method and !controller.send(link.security_method) -%>
<td>
<% if record.class.statused? and record.disabled? -%>
<%= link.action.to_sym == :enable ? render_action_link(link, url_options) : "" -%>
<% else -%>
<%= (record.authorized_for?(:action => link.crud_type) and link.action.to_sym != :enable) ? render_action_link(link, url_options) : "" -%>
<% end -%>
</td>
<% end -%>
Thank you for any help on this matter.