119 |
120 | | app/ |
121 | Contains the models, controllers, helpers, views, assets and mailers for your application. Our focus will be on this folder in this guide. |
122 |
123 |
124 | | bin/ |
125 | Includes the rails script will start up your app and may contain other types of scripts used by you to deploy/ run your application. |
126 |
127 |
128 | | config/ |
129 | Configure your application's database, routes, and more. This is will covered in detail later on in this book. |
130 |
131 |
132 | | config.ru |
133 | Contains the Rack configuration for servers that are Rack-based and are used to start an app. |
134 |
135 |
136 | | db/ |
137 | Includes your current database schema along with the database migrations. |
138 |
139 |
140 | Gemfile, Gemfile.lock |
141 | Using these files, you can specify the gem dependencies that your application needs. The Bundler gem uses these files. |
142 |
143 |
144 | | lib/ |
145 | Contains extended modules for applications |
146 |
147 |
148 | | log/ |
149 | Contains application log files. |
150 |
151 |
152 | | public/ |
153 | The only folder that can be viewed by the world. Includes compiled assets and static files. |
154 |
155 |
156 | | Rakefile |
157 | This particular file locates & loads tasks that are able to run from the command line. Throughout components of Rails, the task definitions are defined. Instead of making any changes to the Rakefile, you should consider adding your own tasks by adding files to the "lib/tasks" directory of your app. |
158 |
159 |
160 | | test/ |
161 | Contains fixtures, tests, and numerous other types of test apparatus |
162 |
163 |
164 | | tmp/ |
165 | Temporary files such as pid, cache, and session files. |
166 |
167 |
168 | | vendor/ |
169 | A folder that contains all third-party code. This includes vendored gems in a typical Rails application. |
170 |
171 |
172 |