Articles of interest for Ruby on Rails
Displaying articles 201 - 225 of 479 in totalArticle Sources
-
Handling First & Last Name with the name_of_person gem
Deciding whether or not to have separate first and last name fields gets a bit confusing. Basecamp's recently released name_of_person gem shows you exactly how to handle this reliably and also stands as a fantastic example of how to build a concern
Published:
-
Reddit style comment thread pagination
Adding pagination to our nested comment threads is easier than you might think, plus we'll take a look at a couple different approaches we can use
Published:
-
Deleting Comments In Nested Threads
Nested comment threads pose a lot of unique challenges. One of these is deleting comments because you can easily lose the child comments or context. We'll take a look at a couple great ways of handling this.
Published:
-
Nested Comment Threads in Rails - Part 3
Using AJAX, we can submit our comments and have them render onto the page without a page refresh.
Published:
-
Nested Comment Threads in Rails - Part 2
Implementing polymorphic, reusable comments across models and limiting the nesting allowed for nested comment threads
Published:
-
Nested Comment Threads in Rails - Part 1
How to build nested comments and threads in Ruby on Rails
Published:
-
How to Add Pagination with Pagy
Pagy is 29x faster at pagination in their benchmarks which makes it an ultra fast and lightweight pagination library
Published:
-
Auto-detect User Time Zones in Rails
Use the jstz Javascript timezone library to help auto-detect and set the user's time zone in your Rails apps
Published:
-
Stripe Signed Webhooks
Stripe webhooks are now required to be signed with your secret webhook key. We'll show you how to set them up in your Rails app today.
Published:
-
User Referral Program From Scratch
How to build a custom Rails referral or affiliate program from scratch
Published:
-
Affiliate & Referrals Programs with Stripe & Rewardful
Easily add an affiliate or referral program to your Rails application using Stripe and Rewardful
Published:
-
Batching Backgrounds Jobs with Sidekiq
Sidekiq Pro or sidekiq-batch lets you run a set of background jobs in parallel and then a callback once they're finished. This is perfect for building more advanced workflows for your background jobs in Rails.
Published:
-
Sending Webhooks with Exponential Backoff
Sending Webhooks in Rails is easy, but what happens when the request fails? You'll need to implement retries and exponential backoff so you don't DoS their service
Published:
-
React Native with Rails OAuth API Authentication Part 3
Learn how to build a React Native application to connect to your Rails API using OAuth for authentication
Published:
-
React Native with Rails OAuth API Authentication Part 2
Learn how to build a React Native application to connect to your Rails API using OAuth for authentication
Published:
-
React Native with Rails OAuth API Authentication Part 1
Learn how to build a React Native application to connect to your Rails API using OAuth for authentication
Published:
-
Doorkeeper Omniauth OAuth Client
Learn how to authenticate with an API using OAuth and Doorkeeper
Published:
-
API Authentication with an OAuth Provider
Setting up an OAuth provider is a great way to add authentication to your API using the doorkeeper gem
Published:
-
Dependency Inversion Principle
Abstractions should not depend upon details. Details should depend upon abstractions
Published:
-
How to Migrate from Heroku to Hatchbox.io
See how to migrate your Ruby apps from Heroku to Hatchbox.io
Published:
-
Interface Segregation Principle
The Interface Segregation Principle states that no client should be forced to depend on methods it does not use
Published:
-
Direct Uploads with ActiveStorage
Learn how to enable direct uploads in the browser to Amazon S3 or DigitalOcean Spaces using Rails' new ActiveStorage library
Published:
-
Realtime SSH Logs with ActionCable
Streaming realtime progress to the browser is easy with ActionCable. This episode covers how we send over SSH logs in realtime inside Hatchbox.io
Published:
-
Liskov Substitution Principle
Subclasses should add to a base classes behavior, not replace it
Published:
-
How to Migrate from Paperclip to Rails ActiveStorage
Now that the Paperclip gem has been deprecated, it's recommended that you migrate your apps to ActiveStorage
Published: