summaryrefslogtreecommitdiff
path: root/config
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 /config
parent8f8cea2a0408918629dc8bab03495530861a71f3 (diff)
Simpler, Better, Faster... StrongerHEADmaster
Start small, address critical customer needs, /then/ scale.
Diffstat (limited to 'config')
-rw-r--r--config/importmap.rb4
-rw-r--r--config/routes.rb20
2 files changed, 14 insertions, 10 deletions
diff --git a/config/importmap.rb b/config/importmap.rb
index 0086a32..909dfc5 100644
--- a/config/importmap.rb
+++ b/config/importmap.rb
@@ -1,3 +1,7 @@
# Pin npm packages by running ./bin/importmap
pin "application"
+pin "@hotwired/turbo-rails", to: "turbo.min.js"
+pin "@hotwired/stimulus", to: "stimulus.min.js"
+pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
+pin_all_from "app/javascript/controllers", under: "controllers"
diff --git a/config/routes.rb b/config/routes.rb
index 1dd57b5..50950d4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,19 +1,19 @@
Rails.application.routes.draw do
root "dashboard#index"
- get "ferti_recipe", to: "recipes#show"
+ # get "ferti_recipe", to: "recipes#show"
- resources :beds, only: [ :index, :edit, :update ] do
- collection do
- patch :bulk_assign_crops
- post :reset_seed_crops
- end
+ # resources :beds, only: [ :index, :edit, :update ] do
+ # collection do
+ # patch :bulk_assign_crops
+ # post :reset_seed_crops
+ # end
- resources :rafts, only: [ :index, :edit, :update ], shallow: true
- end
+ # resources :rafts, only: [ :index, :edit, :update ], shallow: true
+ # end
- resources :fertilizer_products
- resources :crops
+ # resources :fertilizer_products
+ resources :nutrient_profiles
resources :nutrient_measurements
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
Copyright 2019--2025 Marius PETER