rails5
1コード 2Rails チュトリアル4版 5章 5・3レイアウトのリンク以降$rails test でエラーが発生します 初心者でチュトリアルをそのテキスト通りに実行しています。5.3.2railsのルートURL 5.3.4 リンクのテスト 3test/integration/site_layout_test.rb 4require 'test_helpr' 5class SiteLayoutTest<ActionDispatch::IntegrationTest 6 test"layout links"do 7 get root_path 8 assert_template 'static_pages/home' 9 assert_select "a[href=?]", root_path, count: 2 10 assert_select "a[href=?]", help_path 11 assert_select "a[href=?]", about_path 12 assert_select "a[href=?]", contact_path 13 end 14end 15$ rails test:integration 16 17 18 19###発生している問題・エラーメッセージ 20
エラーメッセージ
SiteLayoutTest#test_layout_links:
ActionView::template::Error:undefined method '[]'for nil:NilClass
app/views/layouts/_rails_default.html.erb:2:in 'app_views
...........
...........
``
Errorの意味が、
わかりません。どうしたらいいのでしょうか。errorは出ますが、ローカルでの Server8080では稼動します。ヘロクへプシュするとプリコンパイルがエラーと なりプシュできません。 ###補足情報(言語/FW/ツール等のバージョンなど) Rails5 gem bundled with 1.14.6
あなたの回答
tips
プレビュー