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
Web Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • React
  • Maintenance
Mobile Development
  • React Native
  • iOS
  • Android
Design
  • UX, UI, and Product Design
  • Design Research
  • Design Systems
Product
  • Product Management
  • Product Design Sprint
  • Research and Strategic Insights
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
  • Level up your junior team
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
The business of great software
  • Playbook
  • Startup Incubator
  • 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 strategy, design, product management, and development partner.

    • All Topics
    • Design
    • Web
    • iOS
    • Android
    • More topics
  1. 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
  2. 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
  3. Database View Backed Scopes In Rails

    How do you manage queries when your Rails application isn’t the only thing reading your database?

    Steve Polito
    November 20, 2023
    • Rails
    • Web
    • PostgreSQL
  4. Are you absolutely sure you know how to use the button element?

    Read this the next time you need to build a complicated form.

    Steve Polito
    October 31, 2023
    • Rails
    • Web
  5. This week in #dev (Aug 18, 2023)

    Caching HTTP responses forever, a fix for when your terminal is acting weird, and more!

    thoughtbot
    August 28, 2023
    • This Week In Dev
    • Git
    • Rails
    • HTTP
    • Terminal
    • Communication
  6. This week in #dev (Aug 4, 2023)

    A guide on web security, DeMorgan Laws, force-pushing without losing your work, and more!

    thoughtbot
    August 16, 2023
    • This Week In Dev
    • Rails
    • Ruby
    • Git
    • TIL
    • Tip
    • Security
    • Performance
    • Mathematics
  7. Superglue: digging into the framework details

    Superglue creator Johny Ho answers a beginner’s questions about the new React+Rails framework.

    Johny Ho and Dave Iverson
    August 15, 2023
    • React
    • Rails
    • JavaScript
    • Web
  8. Structuring Conditionals in a Wizard

    Branching early helps structure multi-step forms.

    Joël Quenneville
    August 8, 2023
    • Good Code
    • Elm
    • Ruby
    • Rails
  9. Are you absolutely sure your Rails caching strategy isn't leaking sensitive information?

    Rails writes a new cache entry based on the first request. But what happens when that request is from an admin?

    Steve Polito
    July 26, 2023
    • Rails
    • Ruby
    • Web
    • Security
  10. This week in #dev (Jul 14, 2023)

    Lots of Active Record goodies, VS Code features, and a Heroku CLI extension.

    thoughtbot
    July 25, 2023
    • This Week In Dev
    • Rails
    • Vs Code
    • Security
    • Heroku
  11. Sign up to receive a weekly recap from thoughtbot

« First ‹ Prev 1 2 3 4 5 6 7 … Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • GitHub
  • Instagram
  • YouTube
  • Twitch
© 2024 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