Why there is no assets/images directory in Rails 4.0 RC1

柔情痞子 提交于 2019-12-24 11:57:21

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/16835892/why-there-is-no-assets-images-directory-in-rails-4-0-rc1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!