Skip to content

@tjackiw /verifications_controller.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Adding SMS capabilities to your Rails Application
class VerificationsController < ApplicationController
before_filter :get_user
def create
@user.update_attribute(:verified, true)
# You could send another message acknowledging the verificaton
head :ok
end
private
def get_user
unless @user = User.find_by_phone(params['From'])
head :not_found
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.