Created
March 31, 2015 20:26
-
-
Save mecampbellsoup/27f1c8e2d1c94e3c6452 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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