Neon Tsunami

A blog about Laravel & Rails, written by Dwight Watson.

In Laravel it’s quite common to return “back” to the previous URL a visitor was on. If you’re not using or something similar this magic is…

I'll admit that I'm still relatively new to Rails Webpacker, but on a new project I've decided to completely replace the Sprockets asset…

I've recently started using Heroku CI to test my Heroku apps on Rails, but ran into a strange issue where Simplecov was reporting my code…

The Ruby buildpack for Heroku is great, especially now it supports Webpacker out of the box. It'll automatically install your Yarn…

You've read it once, you've read it a thousand times - one of the hardest things when first getting into testing your code is knowing what…

When using Webpacker you may want to interpolate some values into your assets. For example, API keys are best to come from the deployment…

With Rails 5.1 the team replaced the great library with - the same feature set implemented without jQuery and rather using standalone…

One thing I've had to do with most Laravel apps is handle the redirect from to non- or vice-versa. Many people may choose to handle this in…

Rails has a handy redirect method called which replaces the old syntax. It's improved now because it gracefully handles the case where…

The Laravel scheduler is a great feature that removes the hassle of managing cron tasks, letting you handling everything in your app. Heroku…