Back to Library

Building a PDF Invoice Generator using Cursor 2.0 & Composer

This video walks through how to add automated PDF invoice generation into the Rails app for buildermethods.com that handles memberships and workshop payments—specifically solving the common pain point of customers (especially in Europe) asking for custom invoices that include their own VAT and address details. The creator demonstrates building this feature inside Cursor 2.0, leveraging its Composer model and plan mode for spec-driven development, while using Stripe test data to simulate real customers and transactions.

Over the course of the video, the workflow evolves from the manual “Google Docs and email PDF” process into a fully integrated in-app system. The tutorial shows how to let users enter their custom invoice content in their account settings, how to generate invoices dynamically for successful payments, and how to render them as downloadable PDFs using Prawn, a popular Ruby PDF library. The video also highlights Cursor’s planning and building features, including testing iterations, refining layout and styling, and deploying the final update through Hatchbox.

In this video, you’ll see:

  • How to handle customer invoice requests (and the pain of doing it manually).
  • Using Cursor 2.0’s plan and agent modes to scaffold a Rails feature.
  • Setting up Stripe test customers and webhooks for development.
  • Adding an “Invoice PDF” download button to a payments dashboard.
  • Implementing PDF generation with Prawn for professional-looking invoices.
  • Allowing customers to enter their VAT/address info via account settings.
  • Real-time debugging, styling tweaks, and lightweight deployment to staging.
Builder Methods

Training & community for pro software developers building with AI.

Created by Brian Casel (that's me). I'm a career software developer, founder, and creator of Builder Methods and Agent OS, the system for spec-driven development with AI.

© 2025 CasJam Media, LLC / Builder Methods
Contact