Skip to main content
thoughtbot thoughtbot
  • We're live 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
We're live 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
  • Healthcare
  • Finance
  • Insurance
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
  • 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. Sorting elegantly in Rails with in_order_of

    Sorting columns in custom order in Rails elegantly using inorderof.

    Trésor Bireke
    April 28, 2025
    • Ruby
    • Rails
    • SQL
    • Performance
    • Code
  2. Don't Steal a Penguin -- A Guide to Rails Flashes

    If someone tries to steal a penguin, how should you warn them?

    Louis Antonopoulos
    April 25, 2025
    • Ruby
    • Rails
    • Ruby On Rails
    • Development
  3. AI in Focus: Connecting DeepSeek to Rails

    Experimenting with a locally running version of the DeepSeek R1 LLM model in a real Rails app using Ollama and ruby-openai.

    Chad Pytel and Kate Young
    April 24, 2025
    • AI
    • Ethics
    • Product
    • Language Models
    • Ollama
    • Rails
    • Llm
    • Large Language Models
  4. Faster feedback loops with Rails Runner

    Don’t waste one more second coding in the Rails console.

    Steve Polito
    April 17, 2025
    • Rails
    • Web
  5. How to respect OpenAI's rate limits in Rails

    As it turns out, OpenAI’s rate limits are a little more complicated than other APIs.

    Steve Polito
    April 10, 2025
    • Rails
    • Web
    • Artificial Intelligence
  6. Avoiding N+1 queries the Railsy way with strict loading

    Need to catch N+1 queries without adding any extra dependencies to your project? Strict Loading makes it effortless, but your configurations need to be set up correctly to avoid unexpected behaviors.

    Trésor Bireke
    April 7, 2025
    • Ruby
    • Rails
    • Refactoring
    • Development
  7. How fast can an ActiveRecord SQL query run?

    You have a SQL query that seems like it needs to be faster. What’s the upper-bound on improving that query’s performance?

    Fritz Meissner
    March 31, 2025
    • Rails
    • Active Record
    • Performance
  8. Ruby on Rails agency in London

    Where can you find top Ruby on Rails developers in London? Hint: it isn’t a new AI tool. Real life thoughtbot developers have been helping clients in London for decades.

    Valeria Graffeo
    March 28, 2025
    • Ruby
    • Rails
    • London
    • Agency
    • Developers
    • Ruby On Rails
    • Uk
  9. Using the Presenter Pattern in Ruby on Rails

    The presenter pattern is a handy design approach that sits between your views and models, helping you keep your code organized by handling view-specific logic in a clean and maintainable way. Let’s explore how to use it you your rails app.

    Trésor Bireke
    March 25, 2025
    • Ruby
    • Rails
    • Design Pattern
  10. content_for -- What is it good_for?

    The Marie Kondo for bits of HTML that spark joy but have no home.

    Louis Antonopoulos
    March 24, 2025
    • Ruby
    • Rails
    • Ruby On Rails
    • Accessibility
    • Development
  11. Sign up to receive a weekly recap from thoughtbot

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

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Events
  • Sponsor
  • Store
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2026 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
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy