The problems left over from history have not been completed for a long time before running the rails project in windows, and the Environment has finally been completed and run... After I found that the CSS file could not be loaded successfully, I gave up and directly installed the dual-system. Today I couldn't help it, but I finally finished it. Haha, although it wasn't my own, but still happy ~ The problem was that the project was running, but the CSS file was not loaded successfully.
Solution: Run rake assets: precompile in the directory of the rails project, compile the assets file, merge the JS and CSS files into a file, and then start rails S. The result is as follows:
It is said that the encoding of CSS files is not UTF-8. Convert all of them into UTF-8 format and run the code again ~
Two links are provided:
How to install Ruby, rails runtime environment: http://ruby-china.org/wiki/install_ruby_guide quickly and correctly
View rvm (Ruby version manager, which includes ruby version management and gemset)Practical Guide: http://ruby-china.org/wiki/rvm-guide