Articles of interest for Ruby on Rails
Displaying articles 126 - 150 of 479 in totalArticle Sources
-
Google Maps and Google Places Autocomplete API with Rails, Turbolinks, and Stimulus.js
Learn how to implement Google Maps and the Google Places Autocomplete API in Rails compatible with Turbolinks using StimulusJS
Published:
-
How to use the Pay gem to accept Payments in Rails
A getting started guide on the Pay gem for accepting payments in Rails
Published:
-
Testing File Uploads in Rails with Shrine
Testing file uploads can be tricky, but Shrine makes both file uploading and testing a lot easier than you might expect.
Published:
-
File uploads in Rails with Shrine
File uploads in Rails with Shrine make it easy to upload and customize how files get uploaded and processed in Rails
Published:
-
Building AnimatedGif.me Part 3
This series walks through the entire process of building a Ruby on Rails app from start to finish. We'll be building AnimatedGif.me for saving and sharing animated gifs as easily as possible.
Published:
-
Building AnimatedGif.me Part 2
This series walks through the entire process of building a Ruby on Rails app from start to finish. We'll be building AnimatedGif.me for saving and sharing animated gifs as easily as possible.
Published:
-
Building AnimatedGif.me Part 1
This series walks through the entire process of building a Ruby on Rails app from start to finish. We'll be building AnimatedGif.me for saving and sharing animated gifs as easily as possible.
Published:
-
Testing ActiveStorage File Uploads and Fixtures
Learn how to test ActiveStorage file uploads and create fixtures with ActiveStorage attachments
Published:
-
Realtime Online User Tracking with ActionCable
If we want to add realtime tracking of which users are online, we can use active websocket connections through ActionCable to keep track.
Published:
-
Tracking online users with timestamps
We can use timestamps in our database to track of online users in your Rails
Published:
-
How to use Uppy with ActiveStorage
Learn how to implement Uppy as a frontend for uploading files via drag and drop, paste, URL, Google Drive, Dropbox, webcam and more to Active Storage in Rails
Published:
-
How to use AWS Cloud9 for Ruby on Rails development
Ever wanted an editor and Rails environment you can use anywhere? Cloud9 is the perfect option for this and can run on an EC2 instance in your AWS account.
Published:
-
How to use Mocks in Ruby tests
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.
Published:
-
How to use Dependency Injection in Ruby
Dependency Injection is a common technique for making your code more flexible and testable by removing strict dependencies upon other classes, modules, and other types of dependencies in your code
Published:
-
How to use Test Stubs with Minitest
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.
Published:
-
Fixing Brittle Tests: Avoid Hardcoded Values
Test suites often become brittle over time where small changes end up breaking various tests. One way to avoid that is by avoiding using hardcoded values in your test suite.
Published:
-
Refactoring Rubocop GitHub Action
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.
Published:
-
Testing Rails ActionCable with Devise
Testing ActionCable authentication with Devise is pretty easy, especially when we build our own helpers to stub out Warden
Published:
-
How to test ActionMailer in Rails
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.
Published:
-
Testing Times & Dates with Rails
Rails provides several helper methods for testing times and dates in your applications. You can now freeze time and time travel like in the movies!
Published:
-
How to Test Background Jobs with Active Job
Learn how to test Active Job in your Ruby on Rails application
Published:
-
Testing External APIs with VCR
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.
Published:
-
Testing API Integrations with WebMock
Published:
-
GitHub Actions with Ruby on Rails: Setting up Continuous Integration
Learn how to set up GitHub Actions to run Continuous Integration (CI) with Ruby on Rails
Published:
-
How to write System Tests in Rails
System tests allow you to use a browser for testing your Rails app including Javascript
Published: