Online Deck Flashcards
what is the app/ folder
Contains the controllers, models, views, helpers, mailers and assets for your application. You’ll focus on this folder for the remainder of this guide.
what is the bin/ folder
Contains the rails script that starts your app and can contain other scripts you use to setup, deploy or run your application.
what is the config/ folder
Configure your application’s routes, database, and more. This is covered in more detail in Configuring Rails Applications.
what is the config.ru folder
Rack configuration for Rack based servers used to start the application.
what is the db/ folder
Contains your current database schema, as well as the database migrations.
what is the Gemfile Gemfile.lock folder
These files allow you to specify what gem dependencies are needed for your Rails application. These files are used by the Bundler gem. For more information about Bundler, see the Bundler website.
what is the lib/ folder
Extended modules for your application.
what is the log/ folder
Application log files.
what is the public/ folder
The only folder seen by the world as-is. Contains static files and compiled assets.
what is the Rakefile folder
This file locates and loads tasks that can be run from the command line. The task definitions are defined throughout the components of Rails. Rather than changing Rakefile, you should add your own tasks by adding files to the lib/tasks directory of your application.
what is the README.rdoc folder
This is a brief instruction manual for your application. You should edit this file to tell others what your application does, how to set it up, and so on.
what is the test/ folder
Unit tests, fixtures, and other test apparatus. These are covered in Testing Rails Applications.
what is the tmp/ folder
Temporary files (like cache, pid, and session files).
what is the vendor/ folder
A place for all third-party code. In a typical Rails application this includes vendored gems.