Sha256: 2955d999736ec63c71a4ea4ab409a279996795116968e69bc8fc0b50743e468b

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

  def destroy
    @<%= singular_name %> = @<%= parent_singular_name %>.<%= plural_name %>.find(params[:id])
    @<%= singular_name %>.destroy
    flash[:notice] = "Successfully removed <%= name.humanize.downcase %>."
    redirect_to <%= parent_singular_name %>_<%= plural_name %>_path(@<%= parent_singular_name %>)
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilson63-nifty-generators-0.3.6 rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb
twilson63-nifty-generators-0.3.7 rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb
twilson63-nifty-generators-0.3.8 rails_generators/nifty_nested_scaffold/templates/actions/destroy.rb