☒ How are you starting the application. I just downloaded the project, ran
bundle install
yarn install
bin/dev
and it started up the application without any issues. If you run the seeds, you may need to add this to various places since I did seed the records initially without the images.
Inside `_display` partial I add a `link_to` to show product show view, but it doesn't work. But when I add `turbo_frame: _top` it works which is not an ideal solution.
<%= turbo_frame_tag "products_display" do %>
<%= content_tag :div, id: dom_id(product) do %>
<%= link_to product_path(product), data: {turbo_frame:"_top"} do %>
.......
<% end %>
<% end %>
<% end %>
Any idea on how to keep link_to execute by hotwire? Thanks...
Honestly, the template if very bare. It uses esbuild/css-bundling (see the README) and installs bootstrap with a very simple layout with a navigation bar. That's really all the template does.
app/controllers/shop_carts/adds_controller.rb:14:in `product_found?' No template found for ShopCarts::AddsController#create, rendering head :no_content Completed 204 No Content in 22ms (ActiveRecord: 1.6ms | Allocations: 3142)
and it started up the application without any issues. If you run the seeds, you may need to add this to various places since I did seed the records initially without the images.
Inside `_display` partial I add a `link_to` to show product show view, but it doesn't work. But when I add `turbo_frame: _top` it works which is not an ideal solution.
Any idea on how to keep link_to execute by hotwire?
Thanks...
Is it written like that to avoid using a conditional? For performance reasons? Both?
Honestly, the template if very bare. It uses esbuild/css-bundling (see the README) and installs bootstrap with a very simple layout with a navigation bar. That's really all the template does.
app/controllers/shop_carts/adds_controller.rb:14:in `product_found?'
No template found for ShopCarts::AddsController#create, rendering head :no_content
Completed 204 No Content in 22ms (ActiveRecord: 1.6ms | Allocations: 3142)