问题描述
我刚刚发现在生成 Rails 4 应用程序(当前为 Rails 4 rc1)时没有默认目录 assets/images
.而在 Rails 3.1/3.2 中它是生成的.请告诉我为什么会这样?我的意思是我可以在一秒钟内创建一个目录,但这不是重点.如果我没有在任何公告中得到原因,我很抱歉,否则对我来说毫无意义.谢谢
刚刚发现自己没有公开的 index.html 了,因为它是在 Rails 4 中动态完成的,没有图像,所以目录可能无法获取不再生成在创建新的 Rails 应用程序时生成app/assets/images"目录>
I just discovered that there isnt a default directory assets/images
when I generate a Rails 4 app (Rails 4 rc1 currently). Whereas in Rails 3.1/3.2 its generated. Please tell me why is that so? I mean I can create a directory in a second, but thats not the point. If I didnt get the reason for this on any announcement I am sorry, otherwise it makes no sense to me. Thank you
Just found out myself that there's no index.html in public any more either because it's done dynamically in Rails 4 there's no image anymore, so the directory might not get generated any longer generate 'app/assets/images' directory when creating new rails app
这篇关于为什么 Rails 4.0 RC1 中没有 assets/images 目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!