情報
大学生・専門学校生・社会人

vscodeでruby on sinatraを用いて学習しています。
localhost4567を起動して文字を表示することができたのですが、既存のhtmlファイルをerbに変えたものを表示させ用途した場合、エラーがでます。ファイルの位置関係も問題ないと思うのですが、他にどんな問題がありますでしょうか??

ファイル(F) 編集(E) 選択(S) 表示(V) 移動(G) 実行(R) ターミナル (T) ヘルプ (H) app.rb - books - Visual Studio Code エクスプローラー @ app.rb く> index.erb > 開いているエディター d app.rb require 'sinatra' require 'sinatra/reloader' 1 V BOOKS v views localhost:4567 X 2 <> index.erb そ C O localhost:4567 app.rb 3 get '/' do hello 4 "hello" 5 end 問題 出力 ターミナル デバッグコンソール C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2.1.0/1ib/sinatra/base.、rb:1991:in 'call' C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:1542:in 'block in call' C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:1769:in 'synchronize" C:/Ruby26-x64/1ib/ruby/gems/2.6.0/gems/sinatra-2.1.0/11b/sinatra/base.rb:1542:in *call* C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/pumia-5.3.1/1ib/puma/configuration.rb:249:in * call' C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/puma-5.3.1/11b/puma/renuest nh:76iin 'hlauh
アイル(F) 編集(E) 選択(S) 表示 (V) 移動(G) 実行(R) ターミナル (T) ヘルプ(H) app.rb - books- Visual Studio Code エクスプローラー app.rb く> index.erb > 開いているエディター app.rb 1 require 'sinatra' V BOOKS v views EttnosEINVAL at / x 2 require 'sinatra/reloader" く> index.erb C の localhost:4567 3 get '/' do erb :index app.rb 4 end Erne 5 valid。 DME fle template BACKTRACE Texpand) D:/ユーザードキュメント/プログラミングbooks/app.rb in block arb :1ndex GET No CET data POST No POST data COOKIES No.cookie data. Rack ENV Variable Value GATEWAY INTERFACE CGI1 2 text/html,application/xhtml 問題 出力 ターミナル デバッグコンソール C:/Ruby26-x64/1ib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in *call' C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2,1.0/1ib/sinatra/shON_exceptions、rb:22:in 'cal1' C:/Ruby26-x64/11b/ruby/gems/2,6.0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:216:in 'call' C:/Ruby26-x64/11b/ruby/gems/2.6,0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:1991:in 'call* C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:1542:in block in call C:/Ruby26-x64/11b/ruby/gems/2.6,0/gems/sinatra-2.1.0/1ib/sinatra/base、rb:1769:in 'synchronize' C:/Ruby26-x64/11b/ruby/gems/2.6.0/gems/sinatra-2.1.0/1ib/sinatra/base.rb:1542:in * call' C:/Ruby26-x64/11b/ruby/gems/2,6,0/gems/puma-5,3.1/1ib/puma/configuration.rb:249:in *call" C:/Ruby26-x64/11b/ruby/gGIS/2.6.0(gems (ouma5 1(1ih(mm

回答

まだ回答がありません。

疑問は解決しましたか?

この質問を見ている人は
こちらの質問も見ています😉