Also, their opinion is to provide a JSON API by default, so you can hook in a JS frontend app later if you want.
If you want it right from the start, you can create an api only rails project: https://guides.rubyonrails.org/api_app.html
If you want it right from the start, you can create an api only rails project: https://guides.rubyonrails.org/api_app.html