Sha256: 4d624b61411daecd639d724250e596bfc6d05d7aeef7ff9e0250874eb7ebad54
Contents?: true
Size: 237 Bytes
Versions: 2
Compression:
Stored size: 237 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stager-0.1.1 | lib/generators/stager/scaffold/templates/actions/destroy.rb |
stager-0.1.0 | lib/generators/stager/scaffold/templates/actions/destroy.rb |