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 %>