Sha256: 8cbdb42b360bf41799088ad27c98550bace85949a884dfe0d8f49332f46053e2

Contents?: true

Size: 418 Bytes

Versions: 22

Compression:

Stored size: 418 Bytes

Contents

def destroy
  @<%= instance_name %> = <%= class_name %>.find(params[:id])
@<%= instance_name %>.destroy
if !params[:integrated_view].nil?

 redirect_to <%= item_resource.pluralize %>_integrated_view_path, :notice => "Successfully destroyed <%= class_name.underscore.humanize.downcase %>."
else
  redirect_to <%= items_url %>, :notice => "Successfully destroyed <%= class_name.underscore.humanize.downcase %>."
end
end

Version data entries

22 entries across 16 versions & 1 rubygems

Version Path
thesilverspoon-0.0.23 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.23 lib/templates/actions/destroy.rb