saucy/config/routes.rb

31 lines
641 B
Ruby
Raw Normal View History

Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Defines the root path route ("/")
# root "articles#index"
2022-06-25 22:45:47 +00:00
#
root to: redirect('/members')
2022-06-25 12:48:46 +00:00
resources :members do
member do
get :delete
end
2022-06-25 12:48:46 +00:00
resources :contributions, only: [:new, :create]
end
resources :contributions, only: [:edit, :update, :destroy] do
member do
get :delete
end
end
2022-06-25 22:45:47 +00:00
2022-10-06 14:50:38 +00:00
resources :notifications, only: [:index] do
2022-07-16 10:27:43 +00:00
member do
post :deliver
end
end
2022-06-25 22:45:47 +00:00
resource :board, only: [:edit, :update]
2022-07-16 10:27:43 +00:00
resource :letters, only: [:create]
end