Sha256: b8b4a0f1140ba265a4f4204977f9c3ed501298979239d34af01ce6d6d9c033f9

Contents?: true

Size: 264 Bytes

Versions: 3

Compression:

Stored size: 264 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-generators-0.3.3 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.3.2 lib/generators/dust/scaffold/templates/actions/destroy.rb
dust-generators-0.3.1 lib/generators/dust/scaffold/templates/actions/destroy.rb