Here's a note of what you're having trouble with when running Ruby on Rails Tutorial: Learn Rails with Examples on Windows.
3.3.1 First test is a test that only sees if GET succeeds, but fails with a Permission error
E
Error:
StaticPagesControllerTest#test_should_get_help:
ActionView::Template::Error: Permission denied @ rb_file_s_rename - (C:/environment/sample_app/tmp/cache/assets/sprockets/v4.0.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache.68827840.15592.375890, C:/environment/sample_app/tmp/cache/assets/sprockets/v4.0.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache)
app/views/layouts/application.html.erb:8
test/controllers/static_pages_controller_test.rb:10:in `block in <class:StaticPagesControllerTest>'
rails test test/controllers/static_pages_controller_test.rb:9
.
Finished in 0.474810s, 4.2122 runs/s, 2.1061 assertions/s.
2 runs, 1 assertions, 0 failures, 1 errors, 0 skips
Ruby on Rails --stylesheet_link_tag becomes an error | teratail and executed the following command, it was solved.
> rails tmp:cache:clear
> rails assets:precompile
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
As written, in the Gemfile
gem 'wdm', '>= 0.1.0', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Add,
bundle install --without=production
And then restarted Guard.
bundle exec guard
By the way, wdm seems to be an abbreviation for Windows Directory Monitor
.
Recommended Posts