Ruby on Rails Tutorial Troublesome notes when running on Windows

Here's a note of what you're having trouble with when running Ruby on Rails Tutorial: Learn Rails with Examples on Windows.

Tests that should succeed in Chapter 3 fail

3.3.1 First test is a test that only sees if GET succeeds, but fails with a Permission error


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)
    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

I get a warning when I run Guard

  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]


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

Ruby on Rails Tutorial Troublesome notes when running on Windows
Notes on using FCM with Ruby on Rails
When the Ruby on Rails terminal rolls back
[Personal memo] Ruby on Rails environment construction (Windows)
Rails Tutorial Chapter 5 Notes
Rails Tutorial Chapter 10 Notes
Rails Tutorial Chapter 3 Notes
Ruby on Rails Elementary
Rails Tutorial Chapter 4 Notes
Ruby On Rails Association
Rails Tutorial Chapter 8 Notes
rails tutorial fighting notes Ⅲ
Resolve Gem :: FilePermissionError when running gem install rails (Rails Tutorial Chapter 1)
Error encountered with notes when deploying docker on rails
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.
Ruby on rails learning record -2020.10.03
Portfolio creation Ruby on Rails
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Commentary on partial! --Ruby on Rails
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
[Ruby] Notes on gets method
Ruby on rails learning record -2020.10.06
Ruby on Rails validation summary
Ruby on Rails Basic Memorandum
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
[Ruby on Rails] When parameter id acquisition does not work
[Ruby on Rails] Column restrictions when saving to DB (4 representatives)
Solution when mysql stops working on mac (Rails project running)
Notes on character encoding when migrating from windows to Mac
Ruby on Rails Overview (Beginner Summary)
[Ruby on Rails] Read try (: [],: key)
[Ruby on Rails] yarn install --check-files
Ruby on Rails variable, constant summary
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
[Ruby on Rails] Introduced paging function
Basic knowledge of Ruby on Rails
Progate Ruby on Rails5 Looking Back
[Ruby on Rails] Add / Remove Columns
Encoding when getting in Windows + Ruby
Ruby on Rails Japanese-English support i18n
(Ruby on Rails6) "Erase" posted content
[Ruby on Rails] CSV output function
Build a development environment where Ruby on Rails breakpoints work on Windows
[Ruby on Rails] What is Bcrypt?
[Ruby on Rails] Confirmation page creation
Ruby On Rails devise routing conflict
[Ruby on Rails] Comment function implementation
[Ruby on Rails] DM, chat function
[Ruby on Rails] Convenient helper method
Troublesome Rails environment construction flow [Windows 10]
Things to remember and concepts in the Ruby on Rails tutorial
[Ruby on Rails] Stop "looping until ..."