DEV Community

Discussion on: How to receive and respond to text messages in Ruby with Hanami and Twilio

Collapse
 
philnash profile image
Phil Nash • Edited

Awesome! This is a nice simple app and it covers a few of Hanami's features, but not too many. I need to investigate Interactors next myself.

Let me know how you get on with it!

Collapse
 
yechielk profile image
Yechiel Kalmenson • Edited

It was awesome!

Got the SMS app running.

One small hitch: despite getting the tests running I initially couldn't get the app to send me the SMS. I saw my messages hitting the server but I wasn't getting anything in return. After looking through your app on GitHub the only difference I culd find was that your app didn't contain the line expose :twiml in controllers/sms/create.rb, and when I commented out that line in my app it started sending me the message responses.

Edit: looking back now I see that in the last version of the action you actually did remove it, must have missed it when I was coding along. My bad...

Thread Thread
 
philnash profile image
Phil Nash

Ah, my apologies, I should have called that out more explicitly.

I wonder why the expose caused that issue though. Might be worth looking into within Hanami.

Glad it worked in the end for you!

Thread Thread
 
yechielk profile image
Yechiel Kalmenson

I can't say I understood enough of what's going on to be able to speculate about why it didn't work, this is the first bit I wrote in Hanami. But I do know I want to start playing around with it more :)

Thread Thread
 
philnash profile image
Phil Nash

Oh, I agree on that, I've only just started playing myself. But it's got me interested to dig about under the hood too!