Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more →
How to build a complete, real-world application from scratch with Ruby on Rails step by step.
A lot of Ruby code is "magic". We'll explain the magic and see how it works using the powerful tools Ruby gives us.
Accept subscription and one-time payments with Stripe in your Rails apps
Expert advice on keeping Rails apps organized and fast.
Learn how to build fast, modern web apps with HTML over the wire.
Setup your computer with Ruby on Rails and deploy to a production server.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
A weekly podcast on web development and building products with Ruby, Rails, Javascript, and more.
A few of the Open Source projects we do at GoRails.
Build a Ruby on Rails app in 48 hours with us.
Help Junior developers get hired by sharing small projects to build their resume with paid work.
Find your next Ruby on Rails Job.
In this lesson, we dive into the Pagy source code to learn how to best refactor pagination inside of our own code.
Normally, we require dependencies at the top of files, but today we'll see where and when we might want to lazily require dependencies.
The Revise Auth gem that I wrote didn't have a consistent redirect mechanism for after sign up or sign in, so this lesson we're going to refactor and write tests to improve this feature.
Sometimes you write code to get a feature working and stop there. With a little refactoring, you can extract local variables into methods that make testing and extending easier.
In this lesson, we'll take a look at how a small change to fix some rigid code in the Receipts gem can open up more possibilities.
Did you know Rails provides concerns for routes in addition to concerns for models and controllers?
Modules and concerns provide a way to make functionality reusable across your Rails application and other apps. In this lesson, we'll show you how we can refactor our comments functionality to add a feature to any resources in Rails.
In this episode, we will look at an option for beginning to refactor your code architecture to use modules as a first step to potentially extracting a new class.
Designing code for composability allows you to make code more testable, flexible, and easier to adapt in the long term. We'll look at how I recently refactored the Receipts gem so that you can easily customize receipts and still use built-in components.
A code review with Kasper from the Rails core team to show us the process of reviewing, designing, and refactoring Rails code.
Today we're refactoring Andrew Mason's GitHub Action that runs Rubocop against your repository. We'll pull out some concepts, remove conditionals, and use several other techniques to clean up the code.
We do a code review of a script that let's you control your Mac and iTunes with commands that generate AppleScripts
We do a code review and refactoring of an implementation of incremental run numbers for an application
Refactoring events in simple_calendar and uploading version 2.0
Since we have a great design for simple_calendar, it makes creating new types super elegant and easy
Refactoring our calendar to find out which pieces need to be interchangeable
Refactor and simplify your associations and views using Null Objects that let you remove conditionals and have more robust code
Learn how to refactor your Rails model callbacks into plain old ruby objects that help organize your code