Why there is no assets/images directory in Rails 4

2019-08-04 19:00发布

问题:

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