Sha256: 5519c7826fb97e588c1769b63b002f8eb99e3730e3d601b80cf45c79a5409c6c

Contents?: true

Size: 233 Bytes

Versions: 5

Compression:

Stored size: 233 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

5 entries across 5 versions & 1 rubygems

Version Path
zoo-generators-0.1.5 lib/generators/zoo/scaffold/templates/actions/destroy.rb
zoo-generators-0.1.4 lib/generators/zoo/scaffold/templates/actions/destroy.rb
zoo-generators-0.1.3 lib/generators/zoo/scaffold/templates/actions/destroy.rb
zoo-generators-0.1.2 lib/generators/zoo/scaffold/templates/actions/destroy.rb
zoo-generators-0.1.1 lib/generators/zoo/scaffold/templates/actions/destroy.rb