Sha256: e8cbbac7ebae6d18784c86c40b846af5cfcd872e131471a6488785d418b84533

Contents?: true

Size: 253 Bytes

Versions: 34

Compression:

Stored size: 253 Bytes

Contents

  def destroy
    @<%= singular_name %> = <%= class_name %>.find(params[:id])
    @<%= singular_name %>.destroy
    flash[:notice] = "Successfully destroyed <%= model_name.underscore.humanize.downcase %>."
    redirect_to <%= items_path('url') %>
  end

Version data entries

34 entries across 33 versions & 6 rubygems

Version Path
dust-generators-0.2.8 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.6 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.5 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.4 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.3 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.2 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.1 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.2.0 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.9 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.8 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.7 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.6 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.5 rails_generators/dust_scaffold/templates/actions/destroy.rb
dust-generators-0.1.5 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.4 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.3 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.2 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.1 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.1.0 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.0.3 lib/generators/dust/scaffold/templates/actions/destroy.rb