Rails assumes a certain runtime directory layout and provides application and scaffold generators, which will create this layout for us. For example, if we generate my_app using the command rails new my_app, the top-level directory for our new application appears as shown in the figure below.

Get hands-on with 1400+ tech skills courses.