0

demo_api_controller.rbには、次のような関数があり"post '/fetch_specialities'"ます。ここでは、次の関数を呼び出しています。"lib/facts.rb"

1) rel_date = get_rel_date('MED')
2) rel_date = get_zipcode_by_state('NY')
3) rel_date = get_specs('MED')

これらから、#1 は正常に動作し、最新のリリース日を表示しています。#2と#3は機能していません。

次のエラーが発生します。

 NoMethodError at /demo_api/fetch_specialities undefined method `get_zipcode_by_state' for #<DemoApiApp:0x4e686b1f>
4

1 に答える 1