Skip to content

Commit acde3a1

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 acde3a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/routes.rb

Lines changed: 2 additions & 2 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

0 commit comments

Comments
 (0)