Popular Activerecord Programming Tips
Prefetch associations for existing model instances
Michael Schaefermeyer
·
0 responses
·
rails, activerecord, performance, prefetching
Create a Rails app without ActiveRecord
Jason Humphries
·
0 responses
·
ruby, rails, activerecord, mongodb
Connect ActiveRecord via SSH Tunnel
Dave Baker
·
0 responses
·
ruby, activerecord, ssh, devops
Make ActiveRecord objects not readonly
Bartłomiej Danek
·
0 responses
·
ruby, rails, activerecord, readonly
Connect to a database using ActiveRecord outside of Rails
Steven Shingler
·
0 responses
·
ruby, rails, activerecord, database
Query + Proxy Objects for Sweet Data Access
Ben Simpson
·
1 response
·
ruby, activerecord, patterns, relational
How to check ActiveRecord Version?
Gourav Tiwari
·
0 responses
·
rails, activerecord
Rails #rewhere ActiveRecord method
Rajeev N Bharshetty
·
0 responses
·
ruby, rails, activerecord
Assigning date attributes without ActiveRecord
Gus Bonfant
·
2 responses
·
activerecord, rails
Easily keep track of rails' relationship count with counter_cache
Dimitri Jorge
·
0 responses
·
ruby, rails, activerecord, counter_cache
Search string_to_array in Rails and PostgreSQL
Yacobus Reinhart
·
0 responses
·
activerecord, array, hstore, rails
TIL: Postgres: Partial Index On Boolean Field Tp
bennycwong
·
0 responses
·
rails, activerecord, postgresql, boolean
Multiple HABTM associations between 2 models in Rails
Ali Ismayilov
·
1 response
·
rails, activerecord, models, multiple
ActiveRecord and Mongo associations
Elad Meidar
·
0 responses
·
mysql, rails, activerecord, mongoid
Order of columns in table index matters (postgres)
Anton Katunin
·
0 responses
·
rails, activerecord, postgres, index
Rails .save failing silently? Ruby's implicit returns may be your problem.
Jonathan Cutrell
·
1 response
·
ruby, rails, activerecord
Mapping custom data to ActiveRecord objects
Tomasz Borowski
·
0 responses
·
ruby, activerecord, rails, gem
AssociationCountValidator
Anton Kalyaev
·
1 response
·
ruby, activerecord, validation, forms
SQL92 LIKE expression escaping in Arel's matches(_all) method
Kazuya Numata
·
0 responses
·
rails, activerecord, sql, like
Trace SQL queries back to Rails code
Michael Kohl
·
0 responses
·
ruby, rails, activerecord, query
Use schema_plus to improve your database design in Rails apps
Diogo Biazus
·
1 response
·
rails, activerecord, database, postgresql
Frozen time in rails scope
Alexander Tamoykin
·
0 responses
·
activerecord, rails, time, scope
How to Find and Delete Orphaned Records with Ruby on Rails
Anton Zolotov
·
0 responses
·
ruby, rails, activerecord, sql
Prevent abstract ActiveRecord instantiation
Trung Lê
·
0 responses
·
rails, activerecord, sti, abstract class
Avoid God classes in Rails
Luca Guidi
·
0 responses
·
rails, activerecord, oop
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#
Coderwall Dev Community
Explore the all-time favorite tutorials, design patterns and engineering guides that thousands of readers keep sharing and coming back to, year after year.
These proven techniques, reusable code samples, programming tips and vibe coding habits earned their place through steady views and member likes.
Each entry here is still useful today, covering programming languages, frameworks and workflows that stay relevant long after they were first published.
Whether you're new to a tech stack or an experienced engineer refreshing your skills, start with the most useful tips our dev community members recommend and build on solid, well-tested coding knowledge.