We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21585cd commit a8a1741Copy full SHA for a8a1741
lib/generators/rails/templates/controller.rb
@@ -55,6 +55,7 @@ def update
55
# DELETE <%= route_url %>/1 or <%= route_url %>/1.json
56
def destroy
57
@<%= orm_instance.destroy %>
58
+
59
respond_to do |format|
60
format.html { redirect_to <%= index_helper %>_url, notice: <%= %("#{human_name} was successfully destroyed.") %> }
61
format.json { head :no_content }
0 commit comments