RubyFlow The Ruby and Rails community linklog


The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to Add Filtering & Pagination to Your Data Tables With Hotwire

Having a way to filter records in a table was always clunky in Rails because you’d either have to write a lot of javascript and figure out how to make it work with pagination, or you’d not use Javascript at all and only do it server-side but that didn’t feel very responsive and modern.

But thankfully now that we have Hotwire, adding filtering to a table with pagination can be done in just a few minutes.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in