We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b713ee1 + ebb78ac commit e0a2961Copy full SHA for e0a2961
app/controllers/services_controller.rb
@@ -22,7 +22,6 @@ def create
22
end
23
24
def show
25
- # @service.points = Point.where(service_id: @service)
26
@points = @service.points
27
@points = @points.where(status: 'approved')
28
@@ -40,7 +39,6 @@ def update
40
39
41
42
def destroy
43
44
if @service.points.any?
45
flash[:alert] = "Users have contributed valuable insight to this service!"
46
redirect_to service_path(@service)
0 commit comments