Skip to content

Commit

Permalink
post to same route
Browse files Browse the repository at this point in the history
  • Loading branch information
benmelz committed Aug 16, 2023
1 parent 190cb82 commit 7ee8a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/assignments/generate_by_weekday.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%h1 Generate by Weekday
%hr
= form_with model: @generator,
url: generate_by_weekday_submit_roster_assignments_path(@roster),
url: generate_by_weekday_roster_assignments_path(@roster),
local: true do |f|
.form-group
= f.label :user_id
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
post :generate_rotation
get :rotation_generator
get :generate_by_weekday
post :generate_by_weekday_submit
post :generate_by_weekday, to: 'assignments#generate_by_weekday_submit'
end
end

Expand Down

0 comments on commit 7ee8a93

Please sign in to comment.