Skip to content

Instantly share code, notes, and snippets.

@mecampbellsoup
Created March 31, 2015 20:26
Show Gist options
  • Select an option

  • Save mecampbellsoup/27f1c8e2d1c94e3c6452 to your computer and use it in GitHub Desktop.

Select an option

Save mecampbellsoup/27f1c8e2d1c94e3c6452 to your computer and use it in GitHub Desktop.
def update
if user.newfangled?
user.update_attributes(name: user_params[:Body])
elsif user.named?
#Twilio::TwiML::Response.new do |r|
#r.Say "Thank you, your PIN has been received."
#end
user.update_attributes(pin: user_params[:Digits])
end
return render nothing: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment