您好,我在做 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:in
oauth2_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:in
eval'
/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:in
block (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:in
each'
/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:in
block 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:in
invoke_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:in
invoke_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:in
each'
/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:in
run_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:in
block 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:in
perform'
/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