Pinned Repositories
029-infinite-scrolling
Infinite scrolling is now a common feature and there are several cases where it is really useful. For instance there are some websites where we simply can’t imagine a good pagination system, like Twitter or even Facebook.
042-fullcalendar
Learn how to incorporate FullCalendar into your Ruby on Rails application with listing and creating events. Using unobtrusive javascript, we can create a fast interactive calendar.
046-two-factor-authentication
Add multi factor authentication to your existing authentication solution. This gives your users the option to increase the level of security to their account and help prevent unauthorized access.
051-rails-api-authentication-with-jwt
Using the knock gem, we will add JWT Authentication to our Rails API Application.
070-nested-forms-from-scratch
Learn how to handle multiple models in a single form with accepts_nested_attributes_for and learn how to add and remove nested records through JavaScript.
154-service-objects-for-api-interactions-with-twilio
In this episode, learn how to extract the interactions with an external API into a service object so that code is isolated and interchangeable.
186-nested-forms-from-scratch-with-stimulusjs
Using StimulusJS controllers, adding nested forms to a Rails application is easy and unobtrusive. In this episode, we look at an alternative way of creating nested forms without the Cocoon gem.
275-hotwire
Hotwire is the newest magic which takes a different approach to building modern web applications without using much JavaScript.
294-building-a-questionnaire
Using StimulusJS and nested forms, we create the first parts of a questionnaire. Dynamic surveys can be difficult to architect and maintain. In this episode, we take a simple approach to creating questionnaires.
template
Base template for "all" Drifting Ruby episodes
Drifting Ruby's Repositories
driftingruby/186-nested-forms-from-scratch-with-stimulusjs
Using StimulusJS controllers, adding nested forms to a Rails application is easy and unobtrusive. In this episode, we look at an alternative way of creating nested forms without the Cocoon gem.
driftingruby/275-hotwire
Hotwire is the newest magic which takes a different approach to building modern web applications without using much JavaScript.
driftingruby/294-building-a-questionnaire
Using StimulusJS and nested forms, we create the first parts of a questionnaire. Dynamic surveys can be difficult to architect and maintain. In this episode, we take a simple approach to creating questionnaires.
driftingruby/154-service-objects-for-api-interactions-with-twilio
In this episode, learn how to extract the interactions with an external API into a service object so that code is isolated and interchangeable.
driftingruby/317-error-tracking-from-scratch
In this episode, we look at creating a middleware to track errors to publish to another error "from scratch" error monitoring application.
driftingruby/086-plotting-points-on-a-map-from-scratch
Using the Google Maps Javascript API, learn how to plot markers onto a map. Load markers and info windows through AJAX calls to your Rails JSON API.
driftingruby/258-github-actions
driftingruby/290-multiple-resources-with-devise
Sometimes we get into situations where our applications requires a different type of user account which wouldn't really fit into a role. So, in this episode we look at creating multiple resources for authentication with Devise.
driftingruby/286-turbo-native-for-ios
In this episode, we look at modifying our Rails application and building a hybrid native application for iOS using Hotwire.
driftingruby/307-hotwire-turbo-replacing-rails-ujs
In this episode, we look at some common functionality that we got with Rails UJS and what it looks like to reimplement these with Hotwire's Turbo and StimulusJS.
driftingruby/326-dabbling-with-turbo
In this episode, we explore some of the new features with Turbo and interactions that we can do with little or no javascript.
driftingruby/123-encrypted-secrets-in-rails-52
driftingruby/136-user-notifications
driftingruby/149-rails-presenters
driftingruby/158-grab-bag-of-ruby-and-ruby-on-rails-tricks
In this episode, we look at various tips and tricks.
driftingruby/162-creating-a-simple-slack-bot
Slack is a great application to keep in contact with friends, coworkers and a community. With bots, its capabilities are endless. In this episode, learn how to create a Slack Bot to interact with.
driftingruby/277-diving-into-hotwire
In this episode, we look at the installation scripts of Hotwire and get a better understanding of what they're doing in order to integrate it into our applications more efficiently.
driftingruby/312-importmaps-in-rails-7
Import maps let you import JavaScript modules using logical names that map to versioned/digested files – directly from the browser. This will be a default in the upcoming Rails 7.
driftingruby/118-ruby-on-rails-tips-and-tricks
driftingruby/127-active-record-tricks
driftingruby/145-improving-partial-loading-performance
driftingruby/167-using-actiontext-in-a-rails-5-2-application
With Rails 6.0 is around the corner, Action Text has been merged into the Rails repository. However, it can still be used on a Rails 5.2 application while we wait for its official release.
driftingruby/210-ruby-on-rails-tips-and-tricks
Ruby and Ruby on Rails tricks from, dot files, operators, bundling, StimulusJS and more.
driftingruby/214-plugging-in-anycable
ActionCable can handle quite a bit of traffic, but it gets to a point where it can become a burden on the server. With AnyCable, we can not only handle more traffic, but it is also lighter on the resources.
driftingruby/272-the-stimulus-2-0-tutorial
driftingruby/282-recaptcha-v2
Reduce the number of bots and spam your site gets with Google reCAPTCHA v2 on your Ruby on Rails application.
driftingruby/303-tracking-events-with-ahoy
Analytics can provide great information about your users and the content that you're producing. With using the Ahoy gem, we can gather powerful analytics without handing them over to third parties.
driftingruby/313-esbuild-for-rails
Use esbuild to bundle your JavaScript, then deliver it via the asset pipeline in Rails. This gem provides an installer to get you going with esbuild in a new Rails application.
driftingruby/322-speeding-up-requests
In this episode, we look at several issues around pagination and different kinds of querying that could affect performance when working with large datasets.
driftingruby/ransack
Object-based searching.