Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Adding SMS capabilities to your Rails Application

View users_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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
Something went wrong with that request. Please try again.