S
S
slii2019-04-03 21:52:41
Ruby on Rails
slii, 2019-04-03 21:52:41

How to make a notification on submit in this situation?

Good day.
I have a Ruby on Rails project and I have an html form that works as expected.
The form looks like this:

<form action="...ru/api/submit_ticket" enctype="multipart/form-data" method="post">
</form>

But I need to make sure that after sending the data, a notification appears about the successful sending of the data.
Something like this:
redirect_to support_path, notice: 'Ваше письмо успешно отправлено!

Please tell me how to be in such a situation. I think I just need a RoR form with an absolute link in the action

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question