summaryrefslogtreecommitdiff
path: root/app/controllers/rafts_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/rafts_controller.rb')
-rw-r--r--app/controllers/rafts_controller.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/app/controllers/rafts_controller.rb b/app/controllers/rafts_controller.rb
deleted file mode 100644
index c1c8a72..0000000
--- a/app/controllers/rafts_controller.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-class RaftsController < ApplicationController
- before_action :set_raft, only: %i[ edit update ]
- before_action :set_crop, only: %i[ edit update ]
-
- def edit
- end
-
- def update
- if @raft.update(raft_params)
- redirect_to beds_path, notice: "Raft #{@raft.id} successfully updated."
- else
- render :edit, status: :unprocessable_entity
- end
- end
-
- private
-
- def set_raft
- @raft = Raft.find(params[:id])
- end
-
- def set_crop
- @crops = Crop.order(:name)
- end
-
- def raft_params
- params.require(:raft).permit(:location, :bed_id, :crop_id)
- end
-end
Copyright 2019--2025 Marius PETER