---
title: Nexmo @ RailsConf 2019
description: RailsConf 2019 took place a few weeks ago, and we were there to know about the new stuff that comes to this popular web framework. One of the many great announces is a new Ruby gem that allow us to interact with the Nexmo API that provides SMS, voice, and phone notifications.
image: https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Component-1-%E2%80%93-1.png
---

[Skip to content](https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019#main-content)

![WebRTC.ventures](https://blog.webrtc.ventures/hubfs/logo-main-light.svg)

- [WebRTC Services](https://webrtc.ventures/webrtc-development-services/)
  
  Show submenu for WebRTC Services 
  
    - [Assess](https://webrtc.ventures/services/assess/)
    - [Build](https://webrtc.ventures/services/build/)
    - [Integrate](https://webrtc.ventures/services/integrate/)
    - [Test](https://webrtc.ventures/services/test/)
    - [Manage](https://webrtc.ventures/services/manage/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
- Our Partners
  
  Show submenu for Our Partners 
  
    - [Amazon Chime SDK](https://webrtc.ventures/partners/amazon-chime-sdk/)
- Stories of Success
  
  Show submenu for Stories of Success 
  
    - [Remote Video Interpreting Platform with Agent Routing](https://webrtc.ventures/successes/remote-video-translation-platform/)
    - [WebRTC to SIP Gateway for ASL Interpreters](https://webrtc.ventures/successes/webrtc-to-sip-gateway-for-asl-interpreters/)
    - [Audio Listening Device to Improve Surgical Outcomes](https://webrtc.ventures/successes/audio-listening-device-to-improve-surgical-outcomes/)
    - [Albania’s First Telemedicine Platform](https://webrtc.ventures/successes/albanias-first-telemedicine-platform/)
    - [Automated Video Storytelling with the Amazon Chime SDK](https://webrtc.ventures/successes/automated-video-storytelling-with-the-amazon-chime-sdk/)
    - [Large Scale Video Conferencing](https://webrtc.ventures/successes/large-scale-video-conferencing/)
    - [Broadcasting and Webcast Control Room](https://webrtc.ventures/successes/live-video-broadcasting-and-webcast-control-room/)
- WebRTC Resources
  
  Show submenu for WebRTC Resources 
  
    - [WebRTC Live](https://webrtc.ventures/webrtc-live/)
    - [WebRTC Tips](https://www.youtube.com/playlist?list=PLayYqdnyegt3QvxX-Rt6wbFIK8727Z5Oz)
    - [WebRTC.ventures Blog](https://webrtc.ventures/blog/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
    - [WebRTC.ventures Training Program](https://webrtc.ventures/webrtc-ventures-training-program/)
- [About Us](https://webrtc.ventures/our-team/)
  
  Show submenu for About Us 
  
    - [Blog](https://webrtc.ventures/blog/)
    - [Our Team](https://webrtc.ventures/our-team/)
    - [Jobs](https://webrtc.ventures/jobs/)

Open main navigation

Close main navigation

- [WebRTC Services](https://webrtc.ventures/webrtc-development-services/)
  
  Show submenu for WebRTC Services 
  
    - [Assess](https://webrtc.ventures/services/assess/)
    - [Build](https://webrtc.ventures/services/build/)
    - [Integrate](https://webrtc.ventures/services/integrate/)
    - [Test](https://webrtc.ventures/services/test/)
    - [Manage](https://webrtc.ventures/services/manage/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
- Our Partners
  
  Show submenu for Our Partners 
  
    - [Amazon Chime SDK](https://webrtc.ventures/partners/amazon-chime-sdk/)
- Stories of Success
  
  Show submenu for Stories of Success 
  
    - [Remote Video Interpreting Platform with Agent Routing](https://webrtc.ventures/successes/remote-video-translation-platform/)
    - [WebRTC to SIP Gateway for ASL Interpreters](https://webrtc.ventures/successes/webrtc-to-sip-gateway-for-asl-interpreters/)
    - [Audio Listening Device to Improve Surgical Outcomes](https://webrtc.ventures/successes/audio-listening-device-to-improve-surgical-outcomes/)
    - [Albania’s First Telemedicine Platform](https://webrtc.ventures/successes/albanias-first-telemedicine-platform/)
    - [Automated Video Storytelling with the Amazon Chime SDK](https://webrtc.ventures/successes/automated-video-storytelling-with-the-amazon-chime-sdk/)
    - [Large Scale Video Conferencing](https://webrtc.ventures/successes/large-scale-video-conferencing/)
    - [Broadcasting and Webcast Control Room](https://webrtc.ventures/successes/live-video-broadcasting-and-webcast-control-room/)
- WebRTC Resources
  
  Show submenu for WebRTC Resources 
  
    - [WebRTC Live](https://webrtc.ventures/webrtc-live/)
    - [WebRTC Tips](https://www.youtube.com/playlist?list=PLayYqdnyegt3QvxX-Rt6wbFIK8727Z5Oz)
    - [WebRTC.ventures Blog](https://webrtc.ventures/blog/)
    - [Migrating From Twilio Video](https://webrtc.ventures/twilio-video/)
    - [WebRTC.ventures Training Program](https://webrtc.ventures/webrtc-ventures-training-program/)
- [About Us](https://webrtc.ventures/our-team/)
  
  Show submenu for About Us 
  
    - [Blog](https://webrtc.ventures/blog/)
    - [Our Team](https://webrtc.ventures/our-team/)
    - [Jobs](https://webrtc.ventures/jobs/)
- [Contact us](https://webrtc.ventures/contact/)

[Contact us](https://webrtc.ventures/contact/)

 May 20, 2019 12:00:00 AM

# Nexmo @ RailsConf 2019

[Alberto Gonzalez](https://blog.webrtc.ventures/author/alberto-gonzalez)

Share: [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019) [X Twitter icon](https://twitter.com/intent/tweet?url=https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019) [envelope icon](mailto:?body=https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019)

### Context

RailsConf 2019 took place a few weeks ago, and we were there to learn about the new stuff in this popular web framework. One of the many great announcements is a **new** Ruby gem that allows us to interact with the Nexmo API that provides SMS, voice, and phone notifications.

In their announcement, they said, “The Nexmo Rails gem performs another integration step for you by initializing a Nexmo client instance and making it available throughout your application.”

Today we’ll help you to get started with this new tool.

### Development Process

#### **Installation**

First of all, we need to add the gem into our Gemfile.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_10-AM.png?width=265&height=111&name=Screen-Shot-2019-05-21-at-10_27_10-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_10-AM.png?width=265&height=111&name=Screen-Shot-2019-05-21-at-10_27_10-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_10-AM.png)

Now, we need to run \`bundle install\` in our terminal to use it in our web app.

#### Credentials

In order for us to use the power of this gem, we need to use our API key and API secret credentials found in our Nexmo account. [You can sign up for a free Nexmo account here](https://dashboard.nexmo.com/sign-up). Once you are in the dashboard, you can copy your credentials and paste them in an \`.env\` file, which you must **create** in our root directory. Here’s an example of that file content.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_26-AM.png?width=447&height=135&name=Screen-Shot-2019-05-21-at-10_27_26-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_26-AM.png?width=447&height=135&name=Screen-Shot-2019-05-21-at-10_27_26-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_26-AM.png)

If you’re only interested in sending SMS, that’s all you need. If you would also like to make calls using the gem, you need to add these to your \`.env\` file.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_52-AM.png?width=500&height=141&name=Screen-Shot-2019-05-21-at-10_27_52-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_52-AM.png?width=500&height=141&name=Screen-Shot-2019-05-21-at-10_27_52-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_27_52-AM.png)

We need to ensure (1) that we have the \`dotenv-rails\` gem and (2) that we add the \`.env\` file to our \`.gitignore\` so that we don’t mistakenly upload our credentials to our remote repository.

#### Initialization

The gem provides a really easy and nice way to initialize the code we need to create a client for our app by running the following command.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_31-AM-1.png?width=421&height=65&name=Screen-Shot-2019-05-21-at-10_28_31-AM-1.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_31-AM-1.png?width=421&height=65&name=Screen-Shot-2019-05-21-at-10_28_31-AM-1.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_31-AM-1.png)

With this initializer, we now have the client instantiated, so we won’t need to create a new client every time we want to interact with Nexmo. Here’s an example of when we want to send an SMS.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_47-AM.png?width=595&height=65&name=Screen-Shot-2019-05-21-at-10_28_47-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_47-AM.png?width=595&height=65&name=Screen-Shot-2019-05-21-at-10_28_47-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_28_47-AM.png)

If you want to retrieve available numbers in the US, you can do it with this piece of code.

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_29_01-AM.png?width=600&height=95&name=Screen-Shot-2019-05-21-at-10_29_01-AM.png) ![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_29_01-AM.png?width=600&height=95&name=Screen-Shot-2019-05-21-at-10_29_01-AM.png)](https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Screen-Shot-2019-05-21-at-10_29_01-AM.png)

That’s all we need to start using the Nexmo new gem. Pretty straightforward if you ask me. Now we can integrate SMS text into our app. One famous way to do that is as part of the validation of a new account where we need to make sure the phone number is the one used by our users.

[CPaaS](https://blog.webrtc.ventures/tag/cpaas), [Managed Services](https://blog.webrtc.ventures/tag/managed-services), [Events](https://blog.webrtc.ventures/tag/events), [Video Conferencing](https://blog.webrtc.ventures/tag/video-conferencing), [Real Time Weekly](https://blog.webrtc.ventures/tag/real-time-weekly), [WebRTC Architecture](https://blog.webrtc.ventures/tag/webrtc-architecture), [Broadcasting](https://blog.webrtc.ventures/tag/broadcasting), [Medical](https://blog.webrtc.ventures/tag/medical), [WebRTC Live](https://blog.webrtc.ventures/tag/webrtc-live), [Showcase](https://blog.webrtc.ventures/tag/showcase), [Thoughts](https://blog.webrtc.ventures/tag/thoughts), [Vonage](https://blog.webrtc.ventures/tag/vonage), [Daily](https://blog.webrtc.ventures/tag/daily), [Jobs](https://blog.webrtc.ventures/tag/jobs), [Contact Centers](https://blog.webrtc.ventures/tag/contact-centers), [Telehealth](https://blog.webrtc.ventures/tag/telehealth), [Education](https://blog.webrtc.ventures/tag/education), [Technical](https://blog.webrtc.ventures/tag/technical), [General](https://blog.webrtc.ventures/tag/general), [Story of success](https://blog.webrtc.ventures/tag/story-of-success), [The WebRTC.ventures Blog](https://blog.webrtc.ventures/tag/the-webrtc-ventures-blog), [Testing](https://blog.webrtc.ventures/tag/testing), [Gaming](https://blog.webrtc.ventures/tag/gaming), [DevOps](https://blog.webrtc.ventures/tag/devops), [Symbl.ai](https://blog.webrtc.ventures/tag/symbl-ai)

## Related posts

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/nexmobooth.jpg?height=200&name=nexmobooth.jpg)](https://blog.webrtc.ventures/2019/04/webrtc-ventures-attends-ata-conference-with-nexmo)

## [WebRTC.ventures attends ATA conference with Nexmo](https://blog.webrtc.ventures/2019/04/webrtc-ventures-attends-ata-conference-with-nexmo)

[webrtc](https://blog.webrtc.ventures/author/webrtc) 

 Apr 16, 2019 12:00:00 AM

WebRTC.ventures is a recognized integration partner of Nexmo, and this week we were part of their...

[Read more](https://blog.webrtc.ventures/2019/04/webrtc-ventures-attends-ata-conference-with-nexmo)

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/Telehealth-Starter-Kit-Series_-Appointment-Reminders.png?height=200&name=Telehealth-Starter-Kit-Series_-Appointment-Reminders.png)](https://blog.webrtc.ventures/2019/08/telehealth-starter-kit-series-appointment-reminders)

## [Telehealth Starter Kit Series: Appointment Reminders](https://blog.webrtc.ventures/2019/08/telehealth-starter-kit-series-appointment-reminders)

[Paige Long](https://blog.webrtc.ventures/author/paige-long) 

 Aug 15, 2019 12:00:00 AM

Welcome to our telehealth starter kit blog series! For the rest of the summer, we’ll focus on one...

[Read more](https://blog.webrtc.ventures/2019/08/telehealth-starter-kit-series-appointment-reminders)

[![](https://blog.webrtc.ventures/hs-fs/hubfs/Imported_Blog_Media/ArinSime_WebRTCBoston.png?height=200&name=ArinSime_WebRTCBoston.png)](https://blog.webrtc.ventures/2016/03/webrtc-boston-recap)

## [WebRTC Boston Recap](https://blog.webrtc.ventures/2016/03/webrtc-boston-recap)

[ArinSime](https://blog.webrtc.ventures/author/arinsime) 

 Mar 9, 2016 12:00:00 AM

I originally posted this article on RealTimeWeekly.co – sign up for free weekly news on the latest...

[Read more](https://blog.webrtc.ventures/2016/03/webrtc-boston-recap)

### WebRTC.Ventures Services

...

- Assess
- Build
- Integrate
- Test
- Deploy & Manage

### Contact Us

...

**Video should be an opportunity, not a headache.**   
 We’re here to build, integrate, assess and optimize, test, and even deploy and manage your live video application. 

[Contact us](https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019#contact)

### WebRTC Live

...

 View [past episodes](https://blog.webrtc.ventures/webrtc-live/) of our webinar interview series about the latest webRTC use cases and technical updates. Join our mailing list to learn about upcoming episodes! 

![WebRTC Live](https://blog.webrtc.ventures/hs-fs/hubfs/Template%20Images/widged-bannet.webp?height=90&name=widged-bannet.webp)

![logo-main-light](https://blog.webrtc.ventures/hubfs/logo-main-light.svg "logo-main-light")

We’re one of the few agencies in the world dedicated to WebRTC development. This dedication and experience is why so many people trust us to help bring live video application dreams to life.

 

### Let's get started!

###### **[Contact us today](https://webrtc.ventures/contact/)**

**[info@webrtc.ventures](mailto:info@webrtc.ventures)**

<https://www.linkedin.com/company/webrtc-ventures> <https://www.youtube.com/@WebrtcVentures>

### Join our mailing list

We don't e-mail often (a few times a month max), and it will be worth it when we do! Of course, we respect your privacy and will not share your contact information.

© 2023 WebRTC.ventures, an [AgilityFeat](https://agilityfeat.com/) company / [Privacy Policy](https://webrtc.ventures/privacy-policy//)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Alberto Gonzalez",
    "url" : "https://blog.webrtc.ventures/author/alberto-gonzalez"
  },
  "dateModified" : "2024-04-03T17:54:36.441Z",
  "datePublished" : "2019-05-20T04:00:00.000Z",
  "headline" : "Nexmo @ RailsConf 2019",
  "image" : [ "https://blog.webrtc.ventures/hubfs/Imported_Blog_Media/Component-1-%E2%80%93-1.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.webrtc.ventures/2019/05/nexmo-railsconf-2019",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.webrtc.ventures/hubfs/logo-main-light.svg"
    }
  }
}
```