-
Notifications
You must be signed in to change notification settings - Fork 14
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
Dynamically calling verbs. #10
Comments
That definitely sounds like a bug. I will look into it tomorrow morning. Sent from my iPhone
|
@brentonannan I figured out the problem. The problem is the fact that you're using "number" as the name of one of your variables in If you change the "number" variable name to "num", it should work. I'll be working on a more friendly error message that will explain this problem. |
Oh, nice. Thanks a lot for looking into that for me. Funnily enough, I
tried this more than once, must've used the same naming both times.
Cheers for the help, and thanks for the work on these projects.
|
As mentioned in #10, you cannot use a TwiML verb name as a parameter in a function definition, like this: ```elixir Enum.each [1, 2] fn(number) -> say "Press #{number}" end ``` This commit adds a nice warning message if a user attempts to do this, telling them that the "number" verb is reserved.
@brentonannan I released a new version, |
Hi Daniel,
I'm having some trouble trying to build a menu dynamically from an attribute, e.g.:
The error I'm getting is:
My guess is that it has something to do with metaprogramming, but I'm new enough to that side of elixir that I can't quite figure out how ex_twiml works. Is there a way you've used successfully for doing such a thing?
Cheers,
Brenton.
The text was updated successfully, but these errors were encountered: