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-1.0.2 lib/templates/actions/destroy.rb
thesilverspoon-1.0.1 lib/templates/actions/destroy.rb
thesilverspoon-1.0.0 lib/templates/actions/destroy.rb
thesilverspoon-0.0.35 lib/templates/actions/destroy.rb
thesilverspoon-0.0.34 lib/templates/actions/destroy.rb
thesilverspoon-0.0.33 lib/templates/actions/destroy.rb
thesilverspoon-0.0.32 lib/templates/actions/destroy.rb
thesilverspoon-0.0.31 lib/templates/actions/destroy.rb
thesilverspoon-0.0.30 lib/templates/actions/destroy.rb
thesilverspoon-0.0.29 lib/templates/actions/destroy.rb
thesilverspoon-0.0.28 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.28 lib/templates/actions/destroy.rb
thesilverspoon-0.0.27 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.27 lib/templates/actions/destroy.rb
thesilverspoon-0.0.26 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.26 lib/templates/actions/destroy.rb
thesilverspoon-0.0.25 lib/templates/actions/destroy.rb
thesilverspoon-0.0.25 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.24 lib/templates/actions/destroy.rb~
thesilverspoon-0.0.24 lib/templates/actions/destroy.rb