Browsing...
Making a Ruby executable with ruby-packer
You can make a single executable from your gem or even a Rails application. I just tried ruby-packer and it works as promised.
InvoicePrinter 2.0
InvoicePrinter is intentionally small and straight-forward library, command line client, and server to make PDF invoices in no time. Version 2.0 includes buyer/seller boxes simplification, decoupling server from the library, offering sample TTY fonts as an add-on and official Docker support.
Testing Phoenix custom error pages
A short post on using assert_error_sent to test custom error responses on status code, response headers, and body. And when it doesn’t work.
Automating tasks and improving developer workflow with pre-commit git hooks
Probably the most usual git workflow is adding changes to the staging area, committing them, and pushing them to the remote repository. Depending on the project we are working on there are some things that we should be checking, validating or generating before heading for the commit. That’s where pre-commit hooks come in.
Phoenix CSRF protection in HTML forms, React forms, and APIs
Let’s see how Phoenix implements CSRF for standard HTML multipart forms and how to use CSRF tokens outside these forms in React forms or API calls.