Seeding the development database using the Faker gem
How to use the Faker gem in Rails to generate fake user and product data for development.
Add name and profile photo to Users
In this tutorial, we'll add a new name field with a migration and use Active Storage attachments to add a profile photo to the User model.
Solution: Use Active Record callbacks to set unique Stripe price id for products
In this lesson, we'll use Active Record callbacks and the Stripe API to add a unique Stripe Price ID to a product whenever its price changes.
Challenge: Replace hardcoded Stripe price id with product-specific ids
Learn how to dynamically set Stripe price IDs for each product in your Rails app, improving flexibility and maintainability in your e-commerce system.
Rails 7.2 allow_browser version guard feature
Rails 7.2 introduced the allow_browser version guard feature, that allows you to specify the minimum browser versions your application supports.
How to allow ID attributes in Action Text
Learn how to enable ID attributes in Action Text for enhanced content structuring in Rails applications. Improve your Ruby on Rails skills with this practical guide.
How to optimize database queries in Rails with EXPLAIN ANALYZE
How I used Rails to build an AI app that roasts Instagram
Here's a video walkthrough of a Rails codebase of one my real apps in production. A few days ago, I built a joke site called Roastagram.lol that mocks Instagram profiles using AI. In this video, I show you the app in action, then show you all the key code and explain how everything works.
How to accept payments with Stripe in Rails 7
Learn how to integrate Stripe payments into your Rails 7 app with step-by-step guidance from the Full Stack Rails Mastery course. Boost your e-commerce skills today.
The 80/20 Rule of Rails performance
Adding Product Reviews with Turbo Stream Actions and Templates
Discover how to implement dynamic product reviews using Turbo Stream actions and templates in Rails, enhancing user experience and SEO performance.
How to use Turbo Streams to display Rails flash messages
Learn how to implement Turbo Streams for displaying Rails flash messages, enhancing user experience in your web applications with Full Stack Rails Mastery.
How to use React with Rails 7
NoMethodError in Devise::RegistrationsController#create
Learn how to troubleshoot and resolve the NoMethodError in Devise::RegistrationsController#create.
How to use ViewComponents in Ruby on Rails
Discover how to use ViewComponents in Ruby on Rails for cleaner, more maintainable UI code. Learn the benefits over traditional partials and see practical examples."
How to use Alpine.js with Ruby on Rails
Learn how to integrate Alpine.js with Ruby on Rails for simple, interactive UIs. Discover its benefits and streamline your frontend without heavy frameworks.
How to create Active Record migrations in Ruby on Rails
In Ruby on Rails, migrations are essential for managing changes to your database schema over time. They let you modify your database structure using Ruby code, rather than writing raw SQL. This tutorial will show you commands for creating migration tasks using Active Record, Rails' built-in ORM.
Rails console cheatsheet
Boost your Rails productivity with our comprehensive console cheatsheet. Learn essential commands and tips from the Full Stack Rails Mastery course.
Test-driven development (TDD) vs. testing without TDD
Learn the differences between test-driven development (TDD) and traditional testing approaches in Rails. Discover benefits, challenges, and best practices for effective testing.
What level of test coverage to shoot for
Explore optimal test coverage levels for Rails applications. Learn strategies to balance thoroughness and efficiency in your testing approach.