Answer the question
In order to leave comments, you need to log in
How to implement a complex AJAX form with multiple models?
I am new to Rails and have already realized that Rails has its own best practices for all occasions.
The situation is as follows: there are 2 models: Request and Client.
I want to implement the form like this:
Answer the question
In order to leave comments, you need to log in
And rails don’t care how many forms you have if you do everything with Ajax? You will have 3 addresses there:
1. show the search form / search by number
2. show the card if the user is found
3. form for creating a client
And you will make requests to these addresses with Ajax (I don’t know what is in the rails, controllers?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question