From 8ba568ae0ebe715b5da453681eb141886f1977a8 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 4 Sep 2025 20:55:03 +0200 Subject: Simpler, Better, Faster... Stronger Start small, address critical customer needs, /then/ scale. --- config/importmap.rb | 4 ++++ config/routes.rb | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'config') 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 -- cgit v1.2.3