ransack
DataTables
Our great sponsors
ransack | DataTables | |
---|---|---|
7 | 20 | |
5,585 | 7,276 | |
0.5% | 0.5% | |
7.0 | 1.8 | |
11 days ago | about 2 years ago | |
Ruby | CSS | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ransack
-
ransack VS Searchkick - a user suggested alternative
2 projects | 12 Aug 2021
-
API - convention for filter that can have an occurrence of the value passed?
You might be looking for something like Ransack - https://github.com/activerecord-hackery/ransack
-
Airtable-like table filtering
I use ransack for this and find it very powerful and flexible without the need to rely on complex JS.
-
An Unofficial Active Admin Guide
For especially complicated cases, you can consider learning how to create custom predicates and Ransackers - extensions that convert parameters directly into Arel (internal library ActiveRecord, used to build SQL queries).
-
Building an Advanced Search Form in Rails 6
You can use gems like Ransack to build search forms much faster, but for the purpose of learning and performance we will be building this feature ourselves. Throughout the process, you will also learn how to customize Rails default pluralization. By the end, we will be able to search for Pokemon by name, type, and region.
DataTables
- CSV to a HTML table
-
HTML Table from multiple QuerySets
I've done quite a bit of scouting for a solution, and it looks like many people gravitate around django-tables2, https://www.datatables.net/, https://bootstrap-table.com/, and a few others. The latter two are JS/HTML frameworks that can accept either Django templated HTML (of a table) or JSON, and they seem to prefer JSON to give you the most access to features.
-
Is there any simple way to add pagination if my app doesn't use a database?
If you’re only trying to not show 2000 results to the user at once, you could send them all and then use front-end techniques to paginate (a JS table library, for instance).
-
wpDataTables - does anyone know how how the search works in this plugin and why it handles search query different than WordPress's default search query—why it doesn't show search results that includes ANY one of the 2 words in search query?
Don't know the plugin, but it looks like just a WordPress wrapper around the https://www.datatables.net/ datatable plugin. That plugin is very powerful and popular, there are many plugins for it too, pretty sure you can easily find a front-end developer to make the search more powerful.
-
Giving custom classes to each TD for styling - Datatables & jQuery
I'm using datatables for displaying server-side data in tables.
-
How to modify row counts when displaying alphabetized search results
I am using DataTables to create a table that is able to dynamically filter context. I am following the basic example, here.
-
TypeError: $(...).DataTable is not a function
I am trying to work with jQuery's Datatable JS for my project from this link.
-
Disable sorting for a particular column in jQuery DataTables
I am using the jQuery DataTables plugin to sort the table fields. My question is: how do I disable sorting for a particular column? I have tried with the following code, but it did not work:
-
Datatable with TS autocompletion and Tabs with lazyloading (that can also preserve the content)
Great, currently I am using the Datatables from https://www.datatables.net, have a hard time with column fiiltering plugin (yadcf). Keep on!
-
Using each_slice in Rails
The design called for a grid of 12 cards that could be paginated, searched, and selected. For instance if we have 32 cards, on multiple pages, we needed to be able to select all the cards, and on submit, persist 32 cards to the need controller action. After reviewing the specification, we decided to use DataTables, which we have already used throughout this Rails 5 application.
What are some alternatives?
pg_search - pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Tabulator - Interactive Tables and Data Grids for JavaScript
Elasticsearch Rails - Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
gridjs - Advanced table plugin
Searchkick - Intelligent search made easy
jTable - A JQuery plugin to create AJAX based CRUD tables.
Sunspot - Solr-powered search for Ruby objects
FooTable V3 - jQuery plugin to make HTML tables responsive
elasticsearch-ruby - Ruby integrations for Elasticsearch
Masonry - :love_hotel: Cascading grid layout plugin
has_scope - Map incoming controller parameters to named scopes in your resources
Isotope - :revolving_hearts: Filter & sort magical layouts