This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
API: Delete
link global local
The action link used to tie the Delete action to the List table. See API: Action Link for the options on this setting.
formats
Active scaffold supports html, js, json, yaml, and xml formats by default. If you need to add another mime type for the delete action you can do it here. The format is then added to the default formats.
Examples:
# Add a column (virtual, probably) config.delete.formats << :pdf or config.delete.formats = [:pdf]
Before Delete
If you need to perform some operation before deleting a record, you can override the do_destroy method. After performing your operations, simply call super to return to the ActiveScaffold delete operations.
Example:
In this example we want to log the destroy to a log table.
class ProspectsController < ApplicationController
def do_destroy
record = Prospect.find_by_id(params[:id])
log = Log.create(:description => "Deleted prospect #{record.name}", :created_by => current_user.name)
log.save
super
end
end







