From d0953d6f8778067e3db7bbf5f31fc9f0b7efe7b1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 5 Apr 2025 15:59:51 +0200 Subject: [PATCH] Pull assignments out of the double nesting --- app/views/bubbles/_assignment.html.erb | 2 +- app/views/bubbles/cards/perma/_assignees.html.erb | 2 +- config/routes.rb | 2 +- test/controllers/bubbles/assignments_controller_test.rb | 7 +++---- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/bubbles/_assignment.html.erb b/app/views/bubbles/_assignment.html.erb index 7c6071a25..d28298c02 100644 --- a/app/views/bubbles/_assignment.html.erb +++ b/app/views/bubbles/_assignment.html.erb @@ -3,7 +3,7 @@ Assign this to… - <%= form_with url: bucket_bubble_assignments_path(bubble.bucket, bubble), class: "flex flex-column full-width popup__list", data: { controller: "form" } do |form| %> + <%= form_with url: bubble_assignments_path(bubble), class: "flex flex-column full-width popup__list", data: { controller: "form" } do |form| %> <% bubble.bucket.users.active.sort_by(&:name).each do |user| %>