Some simple examples on how to integrate Twilio into your Rails app
Ruby JavaScript
Switch branches/tags
Nothing to show
Latest commit 62b77a9 Apr 11, 2012 Carter Rabasa Carter Rabasa small tweaks
Permalink
Failed to load latest commit information.
app small tweaks Apr 12, 2012
config inital commit Feb 23, 2012
db inital commit Feb 23, 2012
doc inital commit Feb 23, 2012
public inital commit Feb 23, 2012
script inital commit Feb 23, 2012
test inital commit Feb 23, 2012
Gemfile inital commit Feb 23, 2012
Gemfile.lock inital commit Feb 23, 2012
README.rdoc small tweaks Apr 12, 2012
Rakefile inital commit Feb 23, 2012
config.ru inital commit Feb 23, 2012

README.rdoc

Welcome to My Simple Twilio & Rails Demo

Hey there! If you're interested in learning how to integrate Twilio into your Rails application, you've got to the right place! This demo is currently quite simple, but over time we'll build it out to include more interesting scenarios that illustrate how easy it is to add voice and messaging to your app.

Right now, the files that you'll want to peek at are:

  • Gemfile

  • config/initializers/twilio_config.rb

  • config/routes.rb

  • app/controllers/twilio_controller.rb

  • app/views/twilio/process_sms.xml.erb

In order to get this demo running, you'll need to:

  1. Deploy the app

  2. Create a free Twilio account: twilio.com

  3. Configure the Sandbox number to point to your SMS URL: yourdomain/twilio/process_sms

  4. Send your app a text! Remember to prepend your text message with your Sandbox PIN.

P.S. This app is optimized for deployment on Heroku and includes the Postgres database connector in its Gemfile. Swap that line out for something else (mysql2, etc.) if you're deploying elsewhere.