View screencasts by curated topics.
Dive into the archive of all episodes.
A getting started guide on ...
Setup your development environment.
Configure your production server.
Learn how to modify production to run websockets.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
Accept Payments with Stripe.
Building a simplified version of Instagram is a great way to learn Rails.
Expert advice on keeping Rails apps organized and fast.
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
If we want to add realtime tracking of which users are online, we can use active websocket connections through ActionCable to keep track.
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.
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.
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.
Join 31,152+ developers who get early access to new screencasts, articles, guides, updates, and more.