掲示板実装
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-02-19 22:30:59 +09:00
parent f25fd6f802
commit bb9ec2df1d
38 changed files with 1711 additions and 13 deletions

View File

@@ -3,7 +3,9 @@
# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
# to make the web console appear.
development:
adapter: async
adapter: solid_cable
polling_interval: 0.1.seconds
message_retention: 1.day
test:
adapter: test

View File

@@ -5,3 +5,5 @@ pin "@hotwired/turbo-rails", to: "turbo.min.js"
pin "@hotwired/stimulus", to: "stimulus.min.js"
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
pin_all_from "app/javascript/controllers", under: "controllers"
pin "actioncable" # @5.2.8
pin "@rails/actioncable", to: "@rails--actioncable.js" # @8.1.200

View File

@@ -21,6 +21,19 @@ Rails.application.routes.draw do
patch :select_power
end
end
resources :boards, only: [ :index, :new, :create, :show ] do
member do
patch :toggle_public
end
resources :board_posts, only: [ :create ], path: "posts"
resources :board_memberships, only: [ :create ], path: "members" do
collection do
delete :leave
end
end
resources :board_proposals, only: [ :create, :update ], path: "proposals"
end
end
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html