lib/generators/adhoc/portfolio/templates/actions/destroy.rb in adhoc-generators-0.0.4 vs lib/generators/adhoc/portfolio/templates/actions/destroy.rb in adhoc-generators-0.0.5
- old
+ new
@@ -1,5 +1,4 @@
def destroy
- @<%= instance_name %> = <%= model_name %>.find(params[:id])
@<%= instance_name %>.destroy
- redirect_to <%= items_url %>, :notice => "Successfully destroyed <%= model_name.underscore.humanize.downcase %>."
+ redirect_to <%= items_url %>, notice: "Successfully destroyed <%= model_name.underscore.humanize.downcase %>."
end