railsnotes.xyz
Open in
urlscan Pro
76.76.21.21
Public Scan
Submitted URL: http://railsnotes.xyz/
Effective URL: https://railsnotes.xyz/
Submission: On February 21 via manual from US — Scanned from DE
Effective URL: https://railsnotes.xyz/
Submission: On February 21 via manual from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
RailsNotes All ArticlesEmail TemplatesStarter KitNewsletterAbout All Articles Email Templates Starter Kit Newsletter About RAILSNOTES, THE RUBY ON RAILS GUIDES YOU WISHED YOU HAD. RailsNotes is a collection of the Ruby on Rails guides you wished you had, when you were first starting out. Read interesting Ruby on Rails guides on Hotwire, Stimulus, ActionMailer, Databases, Deployment and more. The RailsNotes Newsletter (for Ruby on Rails lovers ❤️). Read now → Launch faster ⚡️ with our Ruby on Rails starter kit. Learn more → * A DECENT VS CODE + RUBY ON RAILS SETUP February 20, 2024 // vscodedevelopment Setting up VS Code for Ruby on Rails development can be tricky, so I wrote this article to help. In it, I share different VS Code extensions for things like autocomplete, linting, formatting and more! I've even put together a handy extension pack to get you setup fast. Read more → * HERE'S WHAT'S COMING IN RAILS 8 January 5, 2024 // rails Work on Rails 8 is starting, so I dug through the official GitHub milestone to break down all the upcoming goodies for you. There's plenty coming, including Solid Queue, Solid Cache and Kamal becoming defaults, better support for PWAs, an official LSP, and more! Read more → * EDIT RAILS CREDENTIALS USING VS CODE January 4, 2024 // credentialsvscode This short guide shows you how to use VS Code to edit secrets in your Ruby on Rails app when you run `rails credentials:edit`. I also include a handy `bin/credentials:edit` script to simplify things. Read more → * ACTIONMAILER ATTACHMENTS IN RUBY ON RAILS October 28, 2023 // actionmailer ActionMailer makes it easy to attach files to your emails. In this article, I show you how to attach single or multiple files, set custom encodings and mime_types, and attach images as inline attachments to display in your email body. Read more → * SOME VIEWCOMPONENT TIPS (HOW I WRITE THEM) October 14, 2023 // viewcomponentstips In this article, I share tips for writing Rails ViewComponents, based on my experience building RailsNotes UI, and other projects. If you use ViewComponents in your Ruby on Rails apps, read this article! Read more → * REFACTORING FROM FEATURE SPECS TO SYSTEM SPECS September 17, 2023 // rspectestingrefactoring In this article, I break down the difference between system specs and feature specs in RSpec and Rails, and walk you through refactoring your feature specs to system specs. Read more → * BUILD DYNAMIC NAVS WITH CURRENT_PAGE? (AND CONDITIONAL CLASSES) September 1, 2023 // uiviewcomponents This article explores a dynamic nav component I built using the current_page? helper method, plus Rails' conditional class helpers. The result? A simple, dynamic navbar component, with different styling based on current page. Plus I threw in the ViewComponent version too 😉 Read more → * ADD A FAVICON TO YOUR RAILS APP IN 2 MINUTES August 25, 2023 // tips This is a super short article on how to add a favicon to your Ruby on Rails app. We combine the favicon_link_tag helper with asset_path, which makes it quick and easy. Read more → * A SIMPLE STIMULUS TABS CONTROLLER August 24, 2023 // stimulus In this article, I share a handy Stimulus controller for adding tabs to your Rails apps. I also show you a different variation of the controller, and how to add it to your views. Plus, I've included a handy tip to avoid the annoying "flashing in" effect that can happen if you're not careful. Read more → * PREVIEW RAILS MAILERS WITH LETTER_OPENER, MAILCATCHER AND MAILHOG August 7, 2023 // actionmailer This article covers everything you ever wanted to know (and more) about previewing emails and ActionMailer templates in Ruby on Rails. I cover native ActionMailer previews, the letter_opener gem, MailCatcher and MailHog. I've tested them all, and I cover how to use them, and their pros and cons. Read more → * SKIP THE CONSOLE WITH RAILS RUNNER August 4, 2023 // tipsconsole If you're sick of typing rails console all day, or just want to learn about a cool Rails command, I've got something that you're going to like — the rails runner command. Read more → * SPLIT YOUR DATABASE SEEDS.RB BY RAILS ENVIRONMENT July 31, 2023 // databaseseedingtips This method to split your database seeds by Rails environment is clean and simple, and is perfect to split up your `seeds.rb` file. It's a brilliant method! I just wish I'd thought of it first 😅 Read more → * OVERMIND 🪬, A BETTER BIN/DEV FOR YOUR PROCFILE July 26, 2023 // procfiledevelopmentpopular Overmind is a Procfile manager on steroids — like Foreman and bin/dev, but... a lot better. It's deeply configurable, and integrates with tmux so you can stop, restart and attach to running processes. Read more → * SIMPLE LAZY LOADING IN RAILS WITH HOTWIRE AND TURBO FRAMES July 25, 2023 // hotwiretailwindcsspopular Hotwire and Turbo Frames make it easy to add lazy-loading into our Rails apps — I'm talking only 12 lines of code! Plus, we can use TailwindCSS to create a skeleton loader for our Turbo Frames. Read more → * SEED YOUR DATABASE WITH THE FAKER GEM. THEN SEED 9.4X FASTER WITH UPSERT_ALL AND ACTIVERECORD-IMPORT. July 15, 2023 // databasegemfakeractiverecord-import We use the faker gem to seed our database with 10,000 fake posts. Then, we're going to speed up seeding by 9.4x, using either upsert_all or the activerecord-import gem. Read more → * RAILS GENERATE MIGRATION (HANDY REFERENCE) July 10, 2023 // databasemigrationsgeneratorspopular A handy reference for generating migrations in your Ruby on Rails app — I cover the basics like adding columns and tables, adjusting column types (and loads more), plus some tips and tricks... Read more → * ADDING REDIS AND SIDEKIQ TO YOUR RUBY ON RAILS APP July 5, 2023 // redissidekiqdevelopmentprocfilepopular Here are the basics of installing Redis and Sidekiq, and then adding Redis and Sidekiq to your Ruby on Rails app. This is everything you need to get set up — no fluff, just a couple of commands. Let's go! Read more → * PROCFILE.DEV, BIN/DEV, AND RAILS 7 — HOW THEY WORK, WHY THEY'RE GREAT. July 1, 2023 // developmentprocfilepopular Rails 7 introduced a lot of new things, but honestly, the `bin/dev` script is the thing I notice the most. I want to try to give your some insight into how `bin/dev` and `Procfile.dev` work together... Read more → * DEPLOYING RUBY ON RAILS WITH DOKKU (REDIS, SIDEKIQ, ARM SERVERS AND DOCKER). June 30, 2023 // deploymentdokkudockerpopular This is the ultimate Dokku + Ruby on Rails guide — I cover running Dokku on x86 and ARM, deploying Sidekiq and Redis, dockerizing our Ruby on Rails app, and more... Read more → * YOUR FIRST STIMULUS CONTROLLER — LEARN STIMULUS IN RUBY ON RAILS BY BUILDING A TOGGLE. June 24, 2023 // stimulus So, you're new to Stimulus and want to try it out in your Ruby on Rails app. Or perhaps you just need a simple toggle pattern to follow. Either way, you're in the right place... Read more → * LEARN HOTWIRE BY BUILDING THE SIMPLEST POSSIBLE HOTWIRE AND RUBY ON RAILS APP — A BEGINNERS GUIDE. May 26, 2023 // hotwire Most Rails apps probably don't need a React or Vue frontend. With a few lines of Rails and Hotwire magic, we can build a live frontend. That's what we're going to be doing today... Read more → * REPLACE .ENV WITH RAILS CREDENTIALS IN YOUR RUBY ON RAILS APP May 14, 2023 // credentials A deep dive into the basics of Rails credentials, explore their benefits and drawbacks, and showing you how easy it is to integrate this powerful tool into your Rails app development process... Read more → * FROM API CALLS TO ACTIONMAILER — REFACTORING A RAILS APP TO USE ACTIONMAILER FOR TRANSACTIONAL EMAIL May 13, 2023 // actionmailerrefactoring How I switched from using direct SendGrid API calls to implementing ActionMailer for cleaner, more manageable code. Our final implementation will take us from 36 lines of code, down to 1 ... Read more → * DEPLOYING A RUBY ON RAILS APP ON RENDER WITH A DATABASE, REDIS, SIDEKIQ, AND CRON JOBS May 7, 2023 // renderdeployment A full guide for deploying a Ruby on Rails app to Render with a database, Redis, Sidekiq, and Cron jobs. This guide steps you through deploying your Rails app to Render, including setting up Redis, Sidekiq and Cron jobs to give you a great production-ready starter. Read more → JOIN 905+ RUBY ON RAILS LOVERS Join 905+ Ruby on Rails lovers and get our weekly newsletter, no spam. Just interesting Rails articles, from here and around the web. learn more / read previous issues FOOTER RailsNotes, the Ruby on Rails guides you wished you had. © 2024 RAILSNOTES * Newsletter 📬 * Email Templates 📧 * Ruby on Rails Starter Kit 🔨 CATEGORIES * Most Popular ⭐️ * Hotwire 🔥 * Stimulus ✨ * Deployment 🚀 * All Articles 📖 * All Tags 🏷️ MORE FROM ME * Twitter 🐧 * Email * Rails Generators ⚙️ * (Side Project) Share Amazon cart links 🛒