Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

Rails Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. This Week in #dev (Feb 9, 2024)

    Speed up your tests, a nice SQL trick, and a Jest global that you might not know about.

    thoughtbot
    February 19, 2024
    • This Week In Dev
    • Databases
    • Rails
    • Testing
    • Jest
    • Performance
  2. This Week in #dev (Jan 26, 2024)

    Inserting 100,000,000 rows into the database, how Turbo can break OAuth forms, and more!

    thoughtbot
    February 5, 2024
    • This Week In Dev
    • Rails
    • Databases
    • Hotwire
  3. Rails advanced routing constraints

    Learn how to authorize requests at the routing layer to improve security and ergonomics.

    Steve Polito
    January 25, 2024
    • Rails
    • Ruby
    • Web
    • Security
    • Routes
  4. Upcoming Ruby and Rails Conferences in 2024

    The conferences we’re excited about in the new year.

    Aji Slater
    January 18, 2024
    • Ruby
    • Rails
    • Events
    • Conferences
    • Community
    • Meeting
  5. Route-Based Scaling on Kubernetes for Rails Monoliths

    Can we deploy a Rails monolith with audience-based scaling without breaking it up?

    Joe Ferris
    December 26, 2023
    • Kubernetes
    • DevOps
    • Rails
  6. Rails: When Changing Code Doesn't Change Behavior

    Are you updating code and not seeing changes? Try this to figure out what’s wrong.

    Matheus Richard
    December 20, 2023
    • Rails
    • Ruby
    • Debugging
  7. Are your polymorphic relationships correctly enforced?

    Learn how to strike a balance between flexibility and data integrity with a partial index and validations.

    Steve Polito
    December 1, 2023
    • Web
    • Rails
    • PostgreSQL
    • Active Record
  8. 3 ways to model an associated collection in Rails

    A look at the Postgres array type and good old join tables, each with their advantages and disadvantages.

    Dimiter Petrov
    November 23, 2023
    • Rails
    • Databases
    • SQL
    • PostgreSQL
  9. Sharing Query Logic Within ActiveRecord Models

    Re-use collection query logic within model instances to avoid duplication and get the best performance.

    Chris Toomey
    November 22, 2023
    • Rails
    • SQL
    • Web
  10. What's a counter cache?

    Running a separate query to count how many records are associated with another record is inefficient. Using a counter cache can save the day!

    Jose Blanco
    November 21, 2023
    • Rails
    • Ruby
    • Web
    • Active Record
    • Good Code
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
« First ‹ Prev 1 2 3 4 5 6 7 8 9 10 … Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy