Skip to content

Commit

Permalink
Harmonize route names
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Mar 26, 2024
1 parent 8137a46 commit 15ef4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
add_page_title(:author_request_title.t(title: @object.format_name))
%>
<%= form_with(url: descriptions_email_requests_path(
id: @object.id, type: @object.type_tag, q: get_query_param
), scope: :email, id: "authors_email_requests_form") do |f| %>
<%= form_with(url: { action: :create, id: @object.id,
type: @object.type_tag, q: get_query_param },
scope: :email, id: "authors_email_requests_form") do |f| %>
<%= :author_request_note.tp %>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def route_actions_hash
# ----- Descriptions: namespaced actions -------------------------------------
namespace :descriptions, as: "description" do
resource :authors, only: [:show, :create, :destroy], id: /\d+/
resource :email_requests, only: [:new, :create]
resource :author_requests, only: [:new, :create]
end

# ----- Export: no resources ------------------------------------
Expand Down

0 comments on commit 15ef4bd

Please sign in to comment.