Rails System Tests: Test Real User Interactions
Learn how Rails system tests use Capybara and Selenium to verify real user workflows, handle JavaScript, and debug flaky tests.
Dive into our archive to find exactly what you need.
Learn how Rails system tests use Capybara and Selenium to verify real user workflows, handle JavaScript, and debug flaky tests.
Learn how browser caching works, how to set Cache-Control, ETag, and 304 responses, and how to configure it in Rails 8.1 apps.
Learn how to build accessible forms with semantic HTML, ARIA, validation, focus management, and Rails form_with examples.
Learn how ETags, Last-Modified, and conditional GET requests work, and use Rails stale? and fresh_when to return 304 responses.
Learn Rails rate limiting with rate_limit, cache stores, and Redis to protect logins, APIs, and forms from abuse.
Build custom Rails generators with templates, arguments, options, and tests to automate boilerplate and enforce conventions.
Learn how Propshaft serves, fingerprints, and delivers Rails assets, how it differs from Sprockets, and how to deploy it safely.
Learn how to read SQL EXPLAIN output in PostgreSQL and MySQL, spot slow scans and bad joins, and tune queries with evidence.
Learn how optimistic and pessimistic locking work in Rails, when to use each, and how to prevent lost updates safely.
Learn when to use Rails validations, database constraints, or both to protect data integrity, with migrations and tests.
Learn how Rails Engines work, from isolated and mountable engines to migrations, testing, and when modular Rails is worth it.
Learn Rails multi-tenancy: tenant isolation, shared tables, subdomains, jobs, caching, testing, and gems for secure SaaS apps.