Skip to content

Maxhou00/issue_ransack_not_eq

Repository files navigation

README

  1. bundle install
  2. rails db:migrate
  3. rails db:seeds

You should have 2 Users, 200 Articles and 4000 comments (2000 for each user and 20 for each articles) and in rails console compare the following queries

User.joins(:comments).where("comments.article_id = 1 AND comments.upvote != '1.0'").count

User.ransack(g: { '0': { comments_article_id_eq: 1, comments_upvote_not_eq: '1.0' } }).result.size

Rails version:

7.0.2

Ruby version:

3.1.2

Ransack version:

4.0.0

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

About

Demo for an issue with ransack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published