Quantity#destroy changed to AJAX
This commit is contained in:
@@ -23,7 +23,8 @@ class QuantitiesController < ApplicationController
|
||||
if @quantity.destroy
|
||||
flash[:notice] = 'Deleted quantity'
|
||||
end
|
||||
redirect_to project_quantities_url(@project)
|
||||
@quantities = @project.quantities
|
||||
render :toggle
|
||||
end
|
||||
|
||||
def toggle
|
||||
|
||||
Reference in New Issue
Block a user