Tutorials

How to write Javascript in Rails 6 | Webpacker, Yarn and Sprockets
Do you feel lost with all the changes related to assets and Javascript? Npm, Babel, ES6, Yarn, Webpack, Webpacker, Sprockets, do they all look like complete strangers to you?If you need a quick, easy to understand topo on how this whole Javascript...


Nested API parameter validation in Rails with ActiveModel::Validations
In an earlier project we had a few affiliate partners with a deep desire to interact with our system in an automated fashion. So, I naturally created a new basic API endpoint for them to send leads to our system. Then we started testing the integr...





Ruby - raise Exception.new or raise Exception - they're both the same | Arkency Blog
The way I’m raising the exception here is that I raise it without calling .new. This may look as if I’m raising a class, not an object.Some people asked me if this actually works and if it’s the same.We already know the short answer, so let’s dig ...
