Sha256: 312793f79741bafd2194b217902ea02a206c2c256c816f4c087a99a00633a8f1

Contents?: true

Size: 223 Bytes

Versions: 21

Compression:

Stored size: 223 Bytes

Contents

def destroy
  @<%= instance_name %> = <%= class_name %>.find(params[:id])
@<%= instance_name %>.destroy
  redirect_to <%= items_url %>, :notice => "Successfully destroyed <%= class_name.underscore.humanize.downcase %>."
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
thesilverspoon-0.0.22 lib/templates/actions/destroy.rb
thesilverspoon-0.0.21 lib/templates/actions/destroy.rb
thesilverspoon-0.0.20 lib/templates/actions/destroy.rb
thesilverspoon-0.0.19 lib/templates/actions/destroy.rb
thesilverspoon-0.0.18 lib/templates/actions/destroy.rb
thesilverspoon-0.0.17 lib/templates/actions/destroy.rb
thesilverspoon-0.0.16 lib/templates/actions/destroy.rb
thesilverspoon-0.0.15 lib/templates/actions/destroy.rb
thesilverspoon-0.0.14 lib/templates/actions/destroy.rb
thesilverspoon-0.0.13 lib/templates/actions/destroy.rb
thesilverspoon-0.0.12 lib/templates/actions/destroy.rb
thesilverspoon-0.0.11 lib/templates/actions/destroy.rb
thesilverspoon-0.0.10 lib/templates/actions/destroy.rb
thesilverspoon-0.0.9 lib/templates/actions/destroy.rb
thesilverspoon-0.0.8 lib/templates/actions/destroy.rb
thesilverspoon-0.0.7 lib/templates/actions/destroy.rb
thesilverspoon-0.0.6 lib/templates/actions/destroy.rb
thesilverspoon-0.0.5 lib/templates/actions/destroy.rb
thesilverspoon-0.0.4 lib/templates/actions/destroy.rb
thesilverspoon-0.0.3 lib/templates/actions/destroy.rb