Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
turbo
The speed of a single-page web application without having to write any JavaScript (by hotwired)
-
view_component
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
If you want to follow along with this article and you haven’t already completed the sortable table article locally, you’ll want to begin by cloning this Github repo. If you have completed the sortable table article, this one picks up exactly where that one ends, so go ahead and work from where that article finished.
Note that requestSubmit needs a polyfill for support on Safari and IE11. As an alternative to requestSubmit, if you are using Rails/ujs in your application, Rails.fire(this.formTarget, 'submit') works without a polyfill.
One option here is to use Kredis, a Redis-based solution that provides a nice interface for solving problems like our session persistance problem today.
Dive into the Turbo and turbo-rails source and follow along with the Github activity for both
Dive into the Turbo and turbo-rails source and follow along with the Github activity for both
The helper methods we are using to render sorting links and indicators could be implemented as ViewComponents.