Rails - Understanding application.js and application.css

前端 未结 4 1080
囚心锁ツ
囚心锁ツ 2021-02-14 01:44

New to rails. Just trying to understand these two files in the \\assests directory.

For example, the application.js file has lines such as:

//= require j         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-14 02:07

    I think it gets them from the gem(s) that are installed on your system and included in this project via your Gemfile.

    You can learn at http://guides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives

提交回复
热议问题