active-record-recipes icon indicating copy to clipboard operation
active-record-recipes copied to clipboard

A repository of common (and not so common) active record queries.

Results 3 active-record-recipes issues
Sort by recently updated
recently updated
newest added

For some reason, `merge` does not work. It simply returns no results. I notice that if I change the value used in `Recipe.sweet` or `Recipe.quick`, or flip the comparison operator,...

It could be fun to explore how to use [pluck](https://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-pluck) to return calculated results. Something like the following: ```ruby Chef.with_average_rating # => [#, #] Chef.first.average_rating # => 4.5 ```

https://thoughtbot.com/blog/full-text-search-with-postgres-and-action-text