-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unitialized Constant Twilio::REST Sending SMS From a model #35
Comments
FWIW i tried doingg the same thing in the Controller and get the same error. |
Hi Kevin, |
it seems like this might be a problem of only requiring the twilio-ruby gem in an initialization file for the local environment. |
Hi @kcollignon! I'm going to go ahead and close since it's been a while since the last person commented on this issue. If you're still having trouble feel free to reopen! |
Includes reservation call snippets
Hello,
I am having trouble sending an SMS from my Rails app. It works fine locally, but on production I am getting:
This is my app/models/alert.rb directory. Obviously putting the sending functionality at the controller level would help, but any ideas on how to have it recognize this in the model? I have some tricky recipient scoping/mapping which is why it is in the model. Thanks!
The text was updated successfully, but these errors were encountered: