Search code examples
ruby-on-railsransack

Check if a record has related records through Ransack. Rails


Given two models. In my case Course that has many Question.

I want to know if it's possible, through Ransack, to query only the courses that has questions related.

Thanks in advance


Solution

  • The answer was pretty simple: questions_id_null: false