• 您好,我在做 rails wechat_gate:create_menu APP_NAME=eggman 时,报错,提示如下信息(我 ruby 版本是 2.5.3,rails 版本是 5.1.6),能否帮我看看,是我哪里配置的不对?非常感谢: wechat_dev]$ rails wechat_gate:create_menu APP_NAME=eggman --trace ** Invoke wechat_gate:create_menu (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute wechat_gate:create_menu rails aborted! TypeError: no implicit conversion of nil into String /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/wechat-gate-0.1.6/lib/wechat_gate/oauth.rb:28:in escape' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/wechat-gate-0.1.6/lib/wechat_gate/oauth.rb:28:inoauth2_entrance_url' (erb):4:in block (2 levels) in <top (required)>' /usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/erb.rb:876:ineval' /usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/erb.rb:876:in result' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/wechat-gate-0.1.6/lib/tasks/wechat_gate.rake:19:inblock (2 levels) in ' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:273:in block in execute' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:273:ineach' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:273:in execute' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:214:inblock in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/monitor.rb:226:in mon_synchronize' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:194:ininvoke_with_call_chain' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/task.rb:183:in invoke' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:160:ininvoke_task' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:116:in block (2 levels) in top_level' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:116:ineach' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:116:in block in top_level' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:125:inrun_with_threads' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:110:in top_level' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/railties-5.1.6.1/lib/rails/commands/rake/rake_command.rb:21:inblock in perform' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/rake-12.3.2/lib/rake/application.rb:186:in standard_exception_handling' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/railties-5.1.6.1/lib/rails/commands/rake/rake_command.rb:18:inperform' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/railties-5.1.6.1/lib/rails/command.rb:46:in invoke' /usr/local/rvm/gems/ruby-2.5.3@rails516/gems/railties-5.1.6.1/lib/rails/commands.rb:16:in' bin/rails:4:in require' bin/rails:4:in

    ' Tasks: TOP => wechat_gate:create_menu