This is a simple template to help you play with Active Record, when you don't need or don't want to create a full Rails app.
Examples for the book "Avoid n+1 queries on rails"
A widget to include comments in your app
Examples to explore possible race conditions when caching custom computed values
Decoupled blog example using Rails
Extracting helpers to build dynamic tables with hotwire
Gato (tic tac toe) written in coffeescript just for fun =)
Example of a "inline" CRUD with rails and hotwire
Benchmark for the fixes to the latest-comment n+1 problem
An example to build a form with nested fields using a form object (ActiveModel::Model)
Quiz to practice the difference between preload, includes or eager_load
App to help you test/experiment with the tools to help you detect n+1 queries.
A tool for to run active record examples
Sample of the examples for the book "Avoid n+1 queries on rails"
A combination of examples to compare `count`, `size`, `length` and different methods of counts preloading.
An example of a decoupled CRUD
The decoupled blog example now using sequel instead of an in-memory store
Here is an example of a simple way to do it when you can use the `id` column to sort the records.
File-backed models for Rails. Similar to ActiveRecord but reads from markdown files with YAML frontmatter.
An app to use as an example of Commentator ... also I want it to work as a place to the people share about arduino projects.
Example of working with remote modals and forms using Hotwire and bootstrap
A little example of a todo list app using Hotwire
Repositorio con las canciones del coro VBRCM
Advent of Code 2020
The decoupled blog example now using PStore
The Decoupled blog example using sequel datasets
Dynamic filters with rails and hotwire example app
An expenses registration app as an example of using a form object
Example on how to render a react component from an stimulus controller
The new design of jazz controls
A tool to run the "last comment" n+1 examples
Project for active record class
Examples to learn the difference between preload, includes or eager_load
This is an example of using scoped associations with Active Record, from Ruby on Rails, to preload already filtered associations.
Just to try spine.js
10 Examples to learn when you ActiveRecord query will be executed