Development in General


Foundation 5 sliders in dropdowns using EmberJS

EmberJS and Foundation 5 work great together! However, I ran across an issue using sliders within dropdowns. As the content in a dropdown is added to the DOM off-screen, the sliders were setting their initial values using those off-screen coordinates. As this project is using

Continue Reading

Test embedded Google Maps coordinates with RSpec and Capybara

What we'll be testing So it's easy to test the coordinates you should be sending to the map you're about to embed. What if you want to check the coordinates the map is actually embedding? The following will let you do just that. See the

Continue Reading

Testing flash messages on redirect with RSpec

The problem For some reason, using RSpec to test a flash message displayed during a redirect is a huge problem. After much searching, I found a method that works well for me. Hope it saves someone some time down the road! The code # app/controllers/

Continue Reading

RSpec testing for a JSON API

Introduction to RSpec RSpec is an alternative testing framework that replaces Minitest in Rails 4 (which is included by default). At first glance, there appears to be a lot of documentation floating around on how integrate RSpec into your Rails project. As you dig around

Continue Reading

API authentication

The rundown In creating a consumable REST API, authenticating users is a must. I'm using the rails-api gem, which removes a lot of the extra rails components you have no need for in an API-only application. The API will be consumed by a separate web

Continue Reading