See [this](https://inertia-rails.dev/guide/).
See this.