Mock External Services in Rails with WebMock and Rack
Discover how to mock external services in Rails application using WebMock and Rack to simplify testing
Sujay Prabhu
Discover how to mock external services in Rails application using WebMock and Rack to simplify testing
Sujay Prabhu
This blog explains how to organize ActiveRecord models into a tree structure using the Ancestry gem in Rails to manage parent-child hierarchical structures. It covers the setup, features, and querying methods that make managing hierarchical data both simple and efficient.
Giritharan
A detailed guide to Hotwire in Rails exploring turbo-drive, turbo-frames and turbo-streams. Learn how to build blazing-fast applications with real-time updates without full page reloads.
Satya Swaroop Mohapatra
Discover the evolution from Rails Classic autoloader to the dynamic Zeitwerk.
Sujay Prabhu
Guide to Setting Up AWS S3 Bucket for Rails Active Storage File Uploads
Sachin Kabadi
Learn to run rails test on Gitlab CI pipeline
Menuba Tenny
Approaches for clean rails translation files as application grows
Manu Raj
Make better authorization for your application.
Akshay Sasidharan
Supporting API conventions for client like reactjs can be quite tricky. This post talks about approach to make APIs accessible using snakecase or camelCase.
Yuva
Deploying a Rails app with Webpack asset management on Heroku can be tricky. However, Heroku provides lifecycle hooks on its NodeJs buildpack that will help make this easier.
Kashyap
Rails 5 has a new feature added to ActiveRecord that makes working with batch data much more efficient. The `Model.in_batches` function passes a batch of records wrapped inside an ActiveRecord collection.
Kashyap
Traditionally, Rails 3.x and above come with Sprockets and asset management functions. However, using a JavaScript or CSS library with Sprockets means we'd have to roll them into gems with a specific directory heirarchy. Instead, we can leverage Bower to handle that for us.
Yuva
Interacting with complex web forms tends to become hairy pretty quickly. Using Form or Service objects to abstract out the complexity can help wrangle complexity. This post talks about how we use them to make code simpler.
Yuva
Hemant
Hemant
In this post, I will talk about how Rails 3.x reloads code in the development environment.
Yuva
Yuva
Amitava
Deepak
Yuva
Ruby 2.0 and above has in-built support for DTrace hooks. This lets us profile Ruby programs. In this post, I'll go into the details of the features of DTrace.
Hemant
Yuva
Ruby 2.0 and above has in-built support for DTrace hooks. This lets us profile Ruby programs. In this post, I'll introduce DTrace and how to add DTrace probes to a Ruby program.
Hemant
This post talks about using the Backbone library with a Rails backend, and goes through some challenges and gotchas encountered during the process.
Amitava
Hemant
Yuva
The problem with kitchen sink libraries is feature creep. Sometimes all we need are small libraries that are easily readable.
Hemant