Skip to content

Commit

Permalink
Remove unnecessary routing with :id to fix agileware-jp#8 bug where b…
Browse files Browse the repository at this point in the history
…anner edit links did not work correctly.
  • Loading branch information
cat-in-136 committed Mar 21, 2023
1 parent cea1ab5 commit 82dfd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

resources :projects do
resources :banner, only: %i[show] do
resource :banner, only: :none do
get '/', to: 'banner#show', on: :collection
post '/', to: 'banner#edit', on: :collection
post 'project_banner_off', on: :collection
Expand All @@ -20,7 +20,7 @@
get 'off', on: :collection
end

resources :global_banner, only: %i[show] do
resources :global_banner, only: :none do
get '/', to: 'global_banner#show', on: :collection
post '/', to: 'global_banner#update', on: :collection
end
Expand Down

0 comments on commit 82dfd11

Please sign in to comment.