Real Time Rails 4: Using Server-Sent Events with Authy OneTouch

Server-Sent Events (SSE) are real-time events sent from a server and received by a browser, perfect for updating the front end when a server receives a webhook. We’re going to look at how to use SSE to implement Authy OneTouch using Rails 4. Our end result should look a bit like this: Authy OneTouch Two factor authentication usually means copying a bunch of numbers from your phone to… Read More

Video Tutorial: How to Build SMS ETA Notifications with Twilio and Ruby on Rails

eta-notifications

  Follow along with the tutorial here: ETA Notifications in Rails Hi Jarod from Twilio here. Today we’re going to walk through one of the sample apps available within Twilio Tutorials. Production-Ready Sample Apps When we started building these tutorials, we heard from developers that technical documentation focused too much on isolated “code snippets” and not enough on end-to-end solutions suitable for production environments. This feedback was eye-opening… Read More

Two Factor Authentication in Rails 4 with Devise, Authy and Puppies

Passwords aren’t enough any more. Keeping user data safe is hard enough without users themselves choosing the worst passwords in the world. Yes, “123456” has topped the list of most commonly used password of the year again. Two factor authentication keeps your users’ accounts secure by requiring a second factor of authentication, something a user has (their phone) as well as something they know (their password)…. Read More

Delay API calls to Twilio with Rails, Active Job and Sidekiq

Performance is key in web applications. Snappy websites make for better user experiences, higher conversion rates and better user retention. A swift application response causes less stress on servers trying to respond to many users too. There are many ways to improve the performance of a web application in Rails and I want to look at one of those today. Performing long running, blocking tasks during… Read More

Managing Development Environment Variables Across Multiple Ruby Applications

There is one thing I’ve noticed on the Twilio blog since I started here. We are always telling you to store your account SID and auth token in environment variables. What we don’t tend to do is spend too much time talking about how best to manage those environment variables. In my previous role, I worked at a digital agency contributing to many different applications over… Read More

Securing Your Ruby Webhooks with Rack Middleware

rack-logo

Hello fellow Rubyist, I see you have your shiny new Twilio application written, perhaps a Rails app or Sinatra, like in our Ruby quickstart guide. Before you hit that deploy button, you need to stop and ask yourself a couple of questions about that app. Do your webhooks expose sensitive data when they receive a request? Do they change data within your system? If your answer… Read More

Twilio and Rails 3: Tracking SMS Conversations

Alex Meyer is a developer and a DOer. While building a Twilio Powered app on Rails 3, he ran into a problem but quickly developed the solution. Below is a detailed post by Alex on tracking SMS conversations built with Twilio on Rails 3.  He is the founder of stealth startup Ordext, an SMS restaurant ordering service, that is built on Ruby on Rails and powered by Twilio…. Read More