掲示板実装
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user