Asynchronous HTTP requests in Rails
04-May-2020 1421
Today is a special day. It’s the day I’ll (mostly) talk about Javascript!I’ve been struggling with AJAX requests in Rails apps for a while. But I’ve started using them a lot recently, and pieces of the puzzle kinda fell together. Asynchronous requests can be handy when you need to update some parts of your application’s page without reloading the whole thing. I’ll show you how to do this with plain ol’ vanilla Javascript (and its fetch() method), and Rails native server-side partial rendering.
Asynchronous HTTP requests in Rails #ruby #rubydeveloper #rubyonrails #Asynchronous #requests #Rails https://rubyonrails.ba/link/asynchronous-http-requests-in-rails