All posts

Engineering

39 posts

  1. Admin resources feed a generated matrix of passing index and show tests.

    2 min read

    Dynamically Generate Controller Specs for ActiveAdmin

    I use ActiveAdmin (and the arctic_admin theme) to build DocSpring’s internal admin dashboard: ActiveAdmin has a few quirks and bugs, but I enjoy working with it overall. Some other popular

  2. An editor lists Markdown posts whose filenames begin with timestamps.

    3 min read

    Adding a Timestamp to Hugo Post Filenames

    At the time of this post, the DocSpring blog was powered by Hugo, which is an awesome static site generator. Update from April 2020: We migrated our blog to Ghost! Hugo is

  3. Ctrl and C keys restart a process inside a continuing terminal loop.

    1 min read

    How to Use Ctrl+C to Restart a Process in a Loop

    I start my Rails development processes by using AppleScript to set up iTerm2. I often need to restart my Rails processes when I change something in config/initializers, or if I add

  4. An arranged terminal workspace contains Rails, Sidekiq, webpack, and console sessions.

    4 min read

    Using AppleScript to set up iTerm2 for Rails Development

    A Rails developer often needs to start multiple processes while working on an application. You might need to run rails server, sidekiq to process background jobs, and webpack to compile your front-

  5. Independent cached Rails and webpack build layers converge into a single completed image.

    8 min read

    Fast Docker Builds for Rails and Webpack

    Caching gems, npm packages, and compiled assets in our 2018 Rails and webpack Docker build, including the tradeoffs of custom diff layers.

  6. A small patch updates one highlighted field in a larger JSON document.

    3 min read

    Better Rails Performance with JSON Patch

    Using JSON Patch to send smaller updates from React to Rails, with corrected validation, failure handling, and concurrency guidance.

Try DocSpring with your own documents

Upload a PDF or a Word document, or create an HTML template, then send a test request. No credit card needed.

Blog posts and product news by email

New articles and product changes, once a month.