Rails CRUD ! delete not works well may due to rails 7 routes.rb get '/path', to: 'controller#action' get 'restaurants/:id', to: 'restaurants#show' def action end action.html.erb