Rails Refactoring Part I: The Adapter Pattern

This is the first in a series of three posts that will demonstrate implementation of three common Rails design patterns: the adapter pattern; service objects [http://thegreatcodeadventure.com/rails-refactoring-part-ii-services]; the decorator pattern [http://thegreatcodeadventure.com/rails-refactoring-part-ii-the-decorator-pattern] You can find the code for these posts here [https://github.com/sophiedebenedetto/issue-trackr]… »

JWT Authentication with Rails + Ember Part II: Custom Ember Simple Auth

In Part I [https://www.thegreatcodeadventure.com/jwt-authentication-with-rails-ember-part-ii-custom-ember-simple-auth/] of this series, we set up a Rails API with the Knock gem, and implemented a JWT-based authentication system. In this post, we'll take a look at customizing the Ember Simple Auth add-on to complete our JWT auth flow. You… »

JWT Authentication with Rails + Ember Part I: Rails Knock

This is a two-part post on building a JWT authentication system in a Rails API + Ember front-end application. Part I will discuss implementing JWT auth from Rails, and Part II [https://www.thegreatcodeadventure.com/jwt-authentication-with-rails-ember-part-ii-custom-ember-simple-auth/] will illustrate one approach to implementing JWT auth in Ember, by customizing the Ember Simple… »

Heroku Blog: Real-Time Rails––Implementing Action Cable in Rails 5

Over the past few weeks, I've had a great time working with the folks at Heroku to build out a sample Action Cable + Rails 5 chatting application [https://action-cable-example.herokuapp.com/]. Action Cable [https://github.com/rails/rails/tree/master/actioncable], Rails 5's full-stack WebSockets implementation,… »

Stubbing API Calls in RSpec/Capybara with Puffing Billy and VCR

About a year ago, when I first discovered and started using VCR [https://www.thegreatcodeadventure.com/stubbing-with-vcr/] to stub the external API calls being made during the run of an RSpec test suite, I thought all my testing woes were over. At last (I thought), an easy way to mock… »