Rails Geocoder: A Guide to Managing Locations in Your Apps

Rails Geocoder: A Guide to Managing Locations in Your Apps

Eric Boersma Developer Tips, Tricks & Resources

The introduction of Google Maps in 2005 changed the way we think about the internet. It’s hard to remember now, but there was a time where the internet was disconnected from the physical world. You might find a business’s website, and if you were lucky, they’d have an address included. A national chain of restaurants or grocery stores probably wouldn’t …

How to Do Authentication Right With Rails Devise

How to Do Authentication Right With Rails Devise

Eric Boersma Developer Tips, Tricks & Resources

Authentication for web apps is a difficult problem. Anyone who’s ever tried to create their own authentication system will tell you that there are a lot of unexpected edge cases. What’s more, your authentication system is an externally-facing part of your application. This means if someone is trying to hack into your application, your login system’s security will be one of …

Rails Migration

Rails Migration A Complete Guide

Eric Boersma Developer Tips, Tricks & Resources

A Rails migration is a tool for changing an application’s database schema. Instead of managing SQL scripts, you define database changes in a domain-specific language (DSL). The code is database-independent, so you can easily move your app to a new platform. You can roll migrations back, and manage them alongside your application source code. Let’s take a look at what Rails migrations …

Rails Logger and Rails Logging Best Practices

Sylvia Fronczak Developer Tips, Tricks & Resources

Logging provides critical value to applications with insight to usage, stats, and metrics, and saves us when debugging a problem. But we often leave logging to poorly implemented afterthoughts. So what should we know to get the most out of our logging? We will look at the Rails logger and some logging best practices. What is the Rails Logger? When …