diff --git a/app/views/bubbles/_publish.html.erb b/app/views/bubbles/_publish.html.erb
index 9d01f7b13..044142556 100644
--- a/app/views/bubbles/_publish.html.erb
+++ b/app/views/bubbles/_publish.html.erb
@@ -1,3 +1,3 @@
-<%= button_to bucket_bubble_publish_path(bubble.bucket, bubble), class: "btn txt-small btn--link", style: "--btn-background: #{ bubble.color }" do %>
+<%= button_to bubble_publish_path(bubble), class: "btn txt-small btn--link", style: "--btn-background: #{bubble.color}" do %>
Post to project
<% end %>
diff --git a/app/views/bubbles/show.html.erb b/app/views/bubbles/show.html.erb
index 87df4da0b..5eab871d8 100644
--- a/app/views/bubbles/show.html.erb
+++ b/app/views/bubbles/show.html.erb
@@ -111,7 +111,7 @@
<% if @bubble.creating? %>
- <%= button_to "Create card", bucket_bubble_publish_path(@bubble.bucket, @bubble), class: "btn btn--reversed" %>
+ <%= button_to "Create card", bubble_publish_path(@bubble), class: "btn btn--reversed" %>
<%= button_to "Save as draft", bucket_bubble_path(@bubble.bucket, @bubble), name: "bubble[status]", value: "drafted", method: :put, class: "btn" %>
<% end %>
diff --git a/config/routes.rb b/config/routes.rb
index 38463e266..065bfe7cd 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -13,6 +13,7 @@ Rails.application.routes.draw do
resource :image
resource :pin
resource :pop
+ resource :publish
resource :watch
resources :assignments
@@ -50,7 +51,6 @@ Rails.application.routes.draw do
resource :readings, only: :create
scope module: :bubbles do
- resource :publish
resource :recover
resources :stagings
end
diff --git a/test/controllers/bubbles/publishes_controller_test.rb b/test/controllers/bubbles/publishes_controller_test.rb
index 68b48fa7a..dbcafbaca 100644
--- a/test/controllers/bubbles/publishes_controller_test.rb
+++ b/test/controllers/bubbles/publishes_controller_test.rb
@@ -10,7 +10,7 @@ class Bubbles::PublishesControllerTest < ActionDispatch::IntegrationTest
bubble.drafted!
assert_changes -> { bubble.reload.published? }, from: false, to: true do
- post bucket_bubble_publish_url(bubble.bucket, bubble)
+ post bubble_publish_path(bubble)
end
assert_redirected_to bubble