мой маршрут для почтового URL:
admin_community_send_email_to_community_path POST
/admin/communities/:community_id/send_email_to_community
PINWasteWeb.Admin.CommunityController :send_email_to_community
, и мой текущий тег form_for:
<%= form_for @conn, admin_community_path(@conn, :send_email_to_community), [as: :sap, method: "post"], fn f -> %>
, но получаю ошибку: (ArgumentError) No function clause for PINWasteWeb.Router.Helpers.admin_community_path/2 and action :send_email_to_community. The following actions/clauses are supported:
илиЯ изменил
<%= form_for @conn, admin_community_send_email_to_community_path(@conn, :send_email_to_community), [as: :sap, method: "post"], fn f -> %>
, затем получил эту ошибку: /templates/admin/community/email_to_community.html.eex:2: undefined function admin_community_send_email_to_community_path/2