summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/scaffold/templates/actions/destroy.rb
blob: 8a236e09510661aa122dfc2e8cd45091b723fca4 (plain)
1
2
3
4
5
  def destroy
    @<%= instance_name %> = <%= class_name %>.find(params[:id])
    @<%= instance_name %>.destroy
    redirect_to <%= items_url %>, :notice => t('<%= plural_name %>.controller.successfuly_destroyed')
  end