Skip to content

Instantly share code, notes, and snippets.

@tjackiw
Created June 22, 2012 07:01
Show Gist options
  • Select an option

  • Save tjackiw/2970883 to your computer and use it in GitHub Desktop.

Select an option

Save tjackiw/2970883 to your computer and use it in GitHub Desktop.
Adding SMS capabilities to your Rails Application
class UsersController < ApplicationController
def new
@user = User.new
end
def create
@user = User.new(params[:user])
if @user.save
render text: "Thank you! You will receive an SMS shortly with verification instructions."
else
render :new
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment