I think the major sticking point I see in stackoverflow and Rails github issues is form submits and feeding server-side validation errors back to the client. I think we need to briefly define a Rails pattern for
if @object.valid? redirect_to path, status: :see_other else render 'view', status: :unprocessable_entity end
I can’t write this myself because after all the time I’ve spent implementing turbo, I’m not even sure that’s right. I still find myself surprised by an unexpected GET resulting in a 200 stomping my nice 422 and blasting my model errors. Sometimes I’m using a turbo_frame_tag because that’s the only way I can get it to work, but other times I can make the form work without it. Should we have official guide content on turbo patterns?