From 8d1d50e9253a2c0591214805f16306bd9e04a465 Mon Sep 17 00:00:00 2001 From: Nelson Jovel Date: Fri, 5 Jan 2024 14:14:28 -0800 Subject: [PATCH] chore: add stimulus commands back into home/index --- app/views/dashboard/home/index.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/dashboard/home/index.html.erb b/app/views/dashboard/home/index.html.erb index 4023930..73875cc 100644 --- a/app/views/dashboard/home/index.html.erb +++ b/app/views/dashboard/home/index.html.erb @@ -18,8 +18,9 @@ action: "change->form#submit" }) do |f| %> + <%= turbo_frame_tag "schools" do %>
- <% if @districts.count > 1 %> + <% if District.count > 1 %>
<%= f.select :district, @districts, {include_blank: "Select a District", selected: params[:district] } , {id: "district-dropdown", class: "form-select", hidden: @districts.count == 1} %> @@ -39,6 +40,7 @@
<% end %> + <% end %>