When I update an invoice I want to render the full invoice page again. I do not want to render @invoice using _invoice.html.erb as it is set up specifically to render out for the index action. The show page is what has the invoice details in it. When I update an invoice I am getting a missing template error. What am I doing wrong?
partials are named with a leading underscore to distinguish them from regular views, even though they are referred to without the underscore. This holds true even when you’re pulling in a partial from another folder:
Rezzing this thread as it came up multiple times in searching for a solution to the same(ish) problem.
I’m looking to render the show view from my update.turbo_stream.erb. Is there a way to tell turbo streams “Use this view,” instead of a partial?
I am otherwise looking at shoving the entirety of the view into _show.html.erb, and then making a one-line render call to the partial-thats-actually-everything in show.html.erb.
…which I can do, and does work, but just feels janky and wrong.