Skip to content

Commit 2ce7c60

Browse files
committed
Rails 8.0: Fix ArgumentError in route
Route `resource :member` - :only and :except must include only [:show, :create, :update, :destroy, :new, :edit], but also included [:patch]
1 parent be3d657 commit 2ce7c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/routes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
get 'student-guide', action: 'participant_guide'
1313
end
1414

15-
resource :member, only: %i[new edit update patch] do
15+
resource :member, only: %i[new edit update] do
1616
get 'step2'
1717
end
1818

1919
resource :contact_preferences, only: %i[show update]
2020

21-
resource :terms_and_conditions, only: %i[show update patch]
21+
resource :terms_and_conditions, only: %i[show update]
2222
resource :mailing_lists, only: %i[create destroy]
2323

2424
namespace :member do
@@ -141,7 +141,7 @@
141141

142142
resources :testimonials, only: %i[index]
143143

144-
resources :member_search, path: 'member-search', only: [:index, :results] do
144+
resources :member_search, path: 'member-search', only: [:index] do
145145
collection do
146146
get 'index'
147147
get 'results'

0 commit comments

Comments
 (0)