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.
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.
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.
Testing OmniAuth integrations in your Rails app can be straightforward for basics, but there's not a lot of documentation about testing other things like OmniAuth Params. This episode, we'll test registration, login, and OmniAuth params.
Testing your Meilisearch integration in Rails can be a little tricky. This episode, we'll talk through how to setup Meilisearch in your test suite to index fixtures and more.
Rails apps and Rubygems might need to support multiple databases. We can use the DATABASE_URL environment variable to quickly swap out the database that Rails uses in CI, local testing, and more.
Learn how to use system tests for file uploads with file input fields and drag & drop with Uppy and Dropzone
I found a bug in the Kredis gem the other day and wanted to walk you through my thought process on debugging and using TDD to fix the bug for the future.
Testing a gem or your Rails app against multiple Ruby and Rails versions is super useful, but we also take it a step further and test our gem against several different databases too
ActsAsTenant needed some maintenance so we're going to walk through the steps of refactoring the gem and Rspec test suite
Contribute to Rails by discovering something you could improve and learning how to add features to Rails
Testing file uploads can be tricky, but Shrine makes both file uploading and testing a lot easier than you might expect.
Learn how to test ActiveStorage file uploads and create fixtures with ActiveStorage attachments
Mocks are a handy tool for writing tests in Ruby. You can use them to fake an object and verify that the correct methods were called against it. Perfect for testing a method that integrates closely with another class or module.
Test stubs are very handy when you want to mock out the response to a method call. This allows your tests to be more reliable and skip long running or unnecessary method calls.
Testing ActionCable authentication with Devise is pretty easy, especially when we build our own helpers to stub out Warden
Rails provides several really useful test helpers for ActionMailer so we can quickly iterate on our design, test that our code queues up the right emails, and make sure our emails contain the right content.
Testing integrations with external APIs in your Rails app can be hard. You don't know what requests are being made (or even the responses), so how can you properly mock them out? VCR to the rescue.
WebMock is a fantastic way to stub out and mock your HTTP requests. It will actually throw an exception in your test suite when an HTTP request is made so that you know when you're hitting an external API that you haven't stubbed out correctly.
Learn how to write integration tests in Rails to test controllers and actions
You can use Fixtures in Rails to create sample database records for your tests to run against. They're easy to setup and extremely quick.
Test Driven Development, or TDD, is a pretty simple process that allows you to write your code in conjunction with tests to ensure a high level of confidence and code coverage.
In this episode, we add tests for our Basecamp 3 style urls that we built using a Rack middleware
Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.
Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.
© 2023 GoRails, LLC. All rights reserved.