D
D
DimaIs2019-03-04 12:59:34
Ruby on Rails
DimaIs, 2019-03-04 12:59:34

Is it possible to create SP (single page, single page) crud on pure RoR without resorting to sending requests through js?

Roughly speaking, there is a one-pager with two forms (for create and update) and a table in which the elements stored in the database are displayed line by line. One form is static and implements adding an element to the database, the second is dynamic and appears in place of the line of the element that needs to be edited (by pressing the button), respectively, the sub that needs to be sent appears. Is it possible to implement this at all? All requests and transfers are made only through RoR.
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zaporozhchenko Oleg, 2019-03-05
@DimaIs

Rails does this by default and it's called turbolinks.
This is not quite a pure SPA because instead of working with apiha, quite a lot of data is chasing through some JSON, but it still works quite seamlessly with a fast Internet.
The only question is that all third-party javascript libraries will have to be friends with turbolinks. A great option for a budget SPA on the knee

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question