Code Monkey home page Code Monkey logo

ivr-phone-tree-rails's People

Contributors

acamino avatar atbaker avatar bld010 avatar hortega avatar jarodreyes avatar joliveros avatar kathyguerron avatar mmena1 avatar mosampaio avatar ronualdo avatar tomwanzek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ivr-phone-tree-rails's Issues

rake test -- results in an error

I am using ruby 2.1.4 and get the following error

anand@awrtc:~/twilio/ivr-phone-tree-rails$ rake test
rake aborted!
NoMethodError: undefined method fixtures' for ActiveSupport::TestCase:Class /home/anand/twilio/ivr-phone-tree-rails/test/test_helper.rb:7:inclass:TestCase'
/home/anand/twilio/ivr-phone-tree-rails/test/test_helper.rb:5:in <top (required)>' /home/anand/twilio/ivr-phone-tree-rails/test/controllers/twilio_controller_test.rb:1:inrequire'
/home/anand/twilio/ivr-phone-tree-rails/test/controllers/twilio_controller_test.rb:1:in <top (required)>' /home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:114:inrequire'
/home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:114:in block (3 levels) in define' /home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:114:ineach'
/home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:114:in block (2 levels) in define' /home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:113:ineach'
/home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:113:in block in define' /home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/sub_test_task.rb:20:ininvoke_rake_task'
/home/anand/.rvm/gems/ruby-2.1.4/gems/railties-4.1.6/lib/rails/test_unit/testing.rake:8:in block in <top (required)>' /home/anand/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:ineval'
/home/anand/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `

'
Tasks: TOP => test:run => test:functionals
(See full trace by running task with --trace)

It is not going to work in Rails 5.

Could you all please fix these files so that we can use Rails 5.0+ ?

Gemfile
app/controllers/twilio_controller.rb
test/controllers/twilio_controller_test.rb

I have already fixed them on my local, but I want to you all to check if mine is right.
Or if you update the files above, then I can compare them to my codes.

Should the action in `list_planets` be `planets_path`?

In the TwiML you make here, you use menu_path as the action URL:

https://github.com/TwilioDevEd/ivr-phone-tree-rails/blob/master/app/controllers/twilio_controller.rb#L14

And in the TwiML you make here, you use '/ivr/planets' as the action URL:

https://github.com/TwilioDevEd/ivr-phone-tree-rails/blob/master/app/controllers/twilio_controller.rb#L47

Would it be better to use planets_path? Or were you doing it both ways to show that this TwiML parameter is flexible?

Does this app need Postgres?

It looks like this iteration of the app doesn't need a database, but the README instructions still tell you to set one up and the app.json also includes one.

If you do plan to keep Postgres as a dependency for this version of the app, I ran into some trouble in the README because rake db:create made a database called ivr-rails_test but rake db:migrate wanted ivr-rails_development. So I had to create ivr-rails_development manually to get through the setup.

Failure on test suite

After fixing the issue #10 I found this failure.

1__zsh

This assertion:

test "/planets should Play something then Hangup when 2 is chosen" do
  get :planet_selection, From: "15556505813", Digits: '2'
  assert response.body.include? "Play"
  # ...

doesn't match with the implementation of TwilioController#planet_selection:

case user_selection
when "2"
  twiml_dial("+12024173378")
when "3"
# ...

def twiml_dial(phone_number)
  response = Twilio::TwiML::Response.new do |r|
    r.Dial phone_number
  end

  render text: response.text
end

Would you mind checking this out please?

Consider adding a "Thank you" route to end every call

This is minor, but I might consider adding a "goodbye" stage that happens at the end of each path through the IVR.

I felt caught off guard a little by the app hanging up on me after the directions ending. And right now the planet selection endings play once, then play again, then hang up - I was expecting them to either play once and hang up, or loop forever.

A final route for each path that makes it clear the IVR is over. Maybe something like:

"Thank you for calling the ET Phone Home Service - the adventurous alien's first choice in intergalactic travel."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.