summaryrefslogtreecommitdiff
path: root/app/controllers/recipes_controller.rb
diff options
context:
space:
mode:
authorMarius Peter <dev@marius-peter.com>2025-09-04 20:55:03 +0200
committerMarius Peter <dev@marius-peter.com>2025-09-04 20:55:03 +0200
commit8ba568ae0ebe715b5da453681eb141886f1977a8 (patch)
tree3bf3a3d5b41286d0a6da8895857314393bae1db2 /app/controllers/recipes_controller.rb
parent8f8cea2a0408918629dc8bab03495530861a71f3 (diff)
Simpler, Better, Faster... StrongerHEADmaster
Start small, address critical customer needs, /then/ scale.
Diffstat (limited to 'app/controllers/recipes_controller.rb')
-rw-r--r--app/controllers/recipes_controller.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/recipes_controller.rb b/app/controllers/recipes_controller.rb
deleted file mode 100644
index bcc29e7..0000000
--- a/app/controllers/recipes_controller.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class RecipesController < ApplicationController
- def show
- @latest = NutrientMeasurement.order(:measured_on).last || NutrientMeasurement.new
- @target = TargetNutrientCalculator.call
- volume = (params[:volume].presence || 100_000).to_i
- @recipe = FertilizerRecipeCalculator.call(@latest, @target, water_volume_l: volume)
- end
-end
Copyright 2019--2025 Marius PETER