Skip to content Skip to sidebar Skip to footer

ActionView::Template::Error: Can't Resolve Image Into URL: Undefined Method `[]' For Nil:NilClass

using: Ruby 2.4.0p0 Rails 5.2.3 while running my test cases: having and error: My testcase is like: require 'test_helper' class SubscriptionsControllerTest < ActionDispatch::I

Solution 1:

inside application.rb or test.rb write the following line

config.serve_static_assets = true

also run

rails assets:precompile

Post a Comment for "ActionView::Template::Error: Can't Resolve Image Into URL: Undefined Method `[]' For Nil:NilClass"