All threads / Inbound SMS in Rails with Twilio Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Inbound SMS in Rails with Twilio Discussion

Thanks Chris. Ended up using this to programatically send a text message after a user completes an order, and allow that user to ask questions, creating a conversation, where we can respond from the website.

Reply

Can you use actioncable for when a response comes in? If so, would you be able to post a simple gist snippet for it?? Thanks

Anyone know why ActionCable throttles the memory of my ubuntu 16.04 server. I'm using phusion passenger and nginx. I saw some instructions for setting up actioncable, but I didn't know it would be mandatory. But yes, I would like to see the gist you have for setting up action cable for incoming responses. Thanks.

Reply

Hey Chris, when I do a User.find_by(phone: params[:From]), I was hoping that it would use a Phonelib object comparison, but it doesn't, so if my user saved their phone number as 3033033003, it is comparing to a text message coming in (twilio_controller.rb) coming from a number with +1 in front. What is the a clean and performent way to make this query work?

Did anyone else run into this issue?

Reply

I know Chris is kind of busy, but I've been trying for two weeks to link ActionCable up to the TwilioController. Has anyone successfully done this?

Updating the show action when a response is sent back. ActionCable is not rendering the template partial.

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 34,674+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.