Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 为什么把明虾移到Gemfile会给;缺少模板";错误_Ruby On Rails_Bundler_Prawn_Prawnto - Fatal编程技术网

Ruby on rails 为什么把明虾移到Gemfile会给;缺少模板";错误

Ruby on rails 为什么把明虾移到Gemfile会给;缺少模板";错误,ruby-on-rails,bundler,prawn,prawnto,Ruby On Rails,Bundler,Prawn,Prawnto,在2.3.5项目中,出现错误的原因: Template is missing Missing template .../show.erb in view path app/views 何时生成PDF 如果我输入以下内容,则可以生成PDF: require "prawn" require "prawnto" 在environment.rb中,但我不确定这是否是修复方法

在2.3.5项目中,出现错误的原因:

  Template is missing

  Missing template .../show.erb in view path app/views
何时生成PDF

如果我输入以下内容,则可以生成PDF:

  require "prawn"
  require "prawnto"
environment.rb
中,但我不确定这是否是修复方法