在我的Rails项目中,我发送了一个请求,这些是我需要的许多文件,
Started GET "/assets/bootstrap.min.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/customized_bootstrap.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.core.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.theme.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.accordion.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.menu.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.autocomplete.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.button.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
Started GET "/assets/jquery.ui.datepicker.css?body=1" for 127.0.0.1 at 2015-05-29 11:55:09 +0800
如何通过单个GET HTTP请求加载这些文件?
答案 0 :(得分:0)
这就是Rails资产管道在"开发中的运作方式。环境。当应用程序在"生产"环境,javascript和css结合并缩小为单个文件。查看RailsGuide on this topic。