Answer the question
In order to leave comments, you need to log in
The problem of sending a message through mailer, how to solve?
I sent a message from the form through the mailer, the form is statically on each page in the application, when I send it from the main page: localhost:3000/#modal, everything works fine, but when I go to any post, when I send the message, I get an error related to route:
This error occurs with this path:
localhost:3000/posts/34#modal
Here are the routes:
get 'sends/index'
get 'zams/index'
Controller:
The mailer itself:
Answer the question
In order to leave comments, you need to log in
Most likely the link is not correct - a tag should have a path not 'zams/index', but '/zams/index'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question