F
F
FreezkoSS2018-05-03 10:05:12
Ruby on Rails
FreezkoSS, 2018-05-03 10:05:12

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:
5aeab3c482ad4041139869.png
This error occurs with this path:
localhost:3000/posts/34#modal
Here are the routes:
get 'sends/index'
get 'zams/index'
Controller:
5aeab45501977480619442.png
The mailer itself:
5aeab4869f897073660904.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Ponomarev, 2018-05-23
@ilyario

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 question

Ask a Question

731 491 924 answers to any question