lib/generators/adhoc/portfolio/templates/actions/destroy.rb in adhoc-generators-0.0.3 vs lib/generators/adhoc/portfolio/templates/actions/destroy.rb in adhoc-generators-0.0.4

- old
+ new

@@ -1,5 +1,5 @@ def destroy - @<%= instance_name %> = <%= class_name %>.find(params[:id]) + @<%= instance_name %> = <%= model_name %>.find(params[:id]) @<%= instance_name %>.destroy - redirect_to <%= items_url %>, :notice => "Successfully destroyed <%= class_name.underscore.humanize.downcase %>." + redirect_to <%= items_url %>, :notice => "Successfully destroyed <%= model_name.underscore.humanize.downcase %>." end