Popular Active Record Programming Tips

Bypassing ActiveRecord query cache

Bashir Eghbali
·
0 responses · activerecord, caching, query cache, rails

Conditional chaining of methods

Daniel Kosalla
·
0 responses · ruby, rails, activerecord, namedscope

Rails 4 associations and #to_sql

Russell Norris
·
2 responses · activerecord, associations, rails4, rails 4
Displaying tips 1 - 25 of 107 in total
Recent Activity

TIL: Postgres: Partial Index On Boolean Field Tp
bennycwong
· rails, activerecord, postgresql, boolean
Trace SQL queries back to Rails code
Michael Kohl
· ruby, rails, activerecord, query
Preloading scoped has_many :through associations
Alex Popov
· rails, activerecord, sql, eager loading
Conditional chaining of methods
Daniel Kosalla
· ruby, rails, activerecord, namedscope
SwissDB: ActiveRecord for RubyMotion Android
Jon S
· activerecord, sqlite, android, sql
Newest Active Record protips
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.