Answer the question
In order to leave comments, you need to log in
How to update a div in Rails using ajax?
Essence: there is a page #1 with content (one line). And there is page #2 with a button (link_to). How can I make it so that on each click on the button on page #2, the content of page #1 is substituted in the div located on it?
Please, if you know, give a code example to make it clear.
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question