How to Integrate React into Rails using Webpacker

Josh KuehnReact, Ruby on RailsLeave a Comment

If you’re a Rails developer then you’ve heard the Rail’s mantra “Convention over Configuration” many times. Some can argue it’s a weakness but we’ve embraced it wholeheartedly. The problem is that sometimes it makes the Rail’s framework feel too rigid to adapt new trends. Specifically, interactive UIs built using JavaScript frameworks. The popularity of JS frameworks like Angular and React have … Read More

Rendering Rails Collections (The Smart Way)

Josh KuehnRuby on RailsLeave a Comment

This week I was working on a Rails application and stumbled across a really cool trick for rendering collections. As per the usual, it involves a little Rails magic as you’ll see. This trick will clean up a lot of your views and adheres to our coveted DRY convention. Imagine you’re working on an application and you’ve got a collection … Read More

How to Get started with Redis Today

Josh KuehnRedis, Ruby on RailsLeave a Comment

What is a Redis? Why would I wanna use it today? You might’ve asked those questions and if not I’ll answer them for you anyway. The formal definition of Redis according to redis.io is… Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, … Read More

Consuming a Rails API using Alamofire

Josh KuehnAlamofire, API, iOS, Ruby on Rails, SwiftLeave a Comment

Making network requests in today’s world is a requirement to be successful in the App Store. You might be familiar with the Apple API NSUrlSession or the Swift version UrlSession to make those requests. They get the job done but other libraries have boldly come forward to make the task easier such as Alamofire. I’ll be using Alamofire to show … Read More

Rails API Token Authentication

Josh KuehnAPI, Learning, Ruby on Rails1 Comment

In this post I’m going to be walking you through one way to add basic token authentication to your app. It’s important because in the future you might decide you wanna throttle your API usage to users who might use it excessively and wreck your server. Plus it’s easy to setup so why not? If you’ve been keeping up with … Read More

Rails API Versioning

Josh KuehnAPI, Learning, Ruby on Rails2 Comments

Versioning? Sounds like something I made up but it’s a real thing and you need to care about it say’s I! But really, it’s something you don’t wanna forget about if you want to update your API in the future and not upset your users. Just like applications on your phone and computer, it’s common for APIs to receive updates … Read More

Creating a Rails API

Josh KuehnAPI, Learning, Ruby on Rails3 Comments

This is the first of many posts I plan to make on writing your very own API using Ruby on Rails. I won’t overwhelm you with any great explanation on this first post. My plan is to use the magic of Rails to create a functional API  quickly and then show you how to make a quality and scalable API in … Read More