Skip to content

Commit

Permalink
fix scooters#index
Browse files Browse the repository at this point in the history
  • Loading branch information
teal-bauer committed Mar 9, 2025
1 parent 53e7baa commit 5f88346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/scooters/_scooter_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<%= turbo_stream_from scooter %>
<div class="bg-white shadow-sm rounded-lg hover:shadow-md transition-shadow duration-200 relative p-2">
<div id="<%= dom_id(scooter) %>" class="bg-white shadow-sm rounded-lg hover:shadow-md transition-shadow duration-200 relative p-2">
<%= link_to scooter_path(scooter), class: "block" do %>
<div class="p-4 flex flex-col">
<div class="w-full mb-2">
Expand Down
4 changes: 4 additions & 0 deletions app/views/scooters/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% @scooters.each do |scooter| %>
<%= turbo_stream_from scooter %>
<% end %>

<div class="sm:flex sm:items-center mb-8">
<div class="sm:flex-auto">
<h1 class="text-2xl font-semibold leading-6 text-gray-900"><%= t('scooters.my_scooters') %></h1>
Expand Down

0 comments on commit 5f88346

Please sign in to comment.