This commit is contained in:
2025-11-07 13:34:32 -08:00
commit 1e8c5a972b
436 changed files with 11000 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class Books::PublicationsController < ApplicationController
include BookScoped
before_action :ensure_editable, only: %i[ edit update ]
def show
end
def edit
end
def update
@book.update! book_params
redirect_to book_slug_url(@book)
end
private
def book_params
params.require(:book).permit(:published, :slug)
end
end