Hartl Rails 5.3.4 Tutorial: read error: is there a @io_fread directory)

In a Hartl Rails tutorial, instructions should generate a template test using $ rails generate integration_test site_layout

I get an error /Users/AlfonsoGiron/.rvm/gems/ruby-2.2.1/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:73:in 'read': Is a directory @ io_fread - /Users/AlfonsoGiron/sample_app/public/assets (Errno::EISDIR)'followed by several lines from /Users/AlfonsoGiron/.rvm/gems/ruby-2.2.1.. etc. etc.

So, I see that it points to the "assets" in the directory. Not sure what I should do to fix the error. Any ideas?

+4
source share
1 answer

Delete or comment on the following line of code in the file config/environments/development.rb:

# config.assets.manifest = Rails.root.join("public/assets")

This should solve your problem.

+1
source

Source: https://habr.com/ru/post/1621661/


All Articles