Frameworks Flashcards
app/ contains?
The controllers, models, views, helpers, mailers and assets for the application.
Folders and files generated by:
rails new application_name
Folders: app; bin; config; db; lib; log; public; test; tmp; vendor.
Files: .gitignore; config.ru; Gemfile; Gemfile.lock; Rakefile; README.rdoc
bin/ contains?
The rails script that starts the app and can contain other scripts used to setup, deploy or run the application.
config/ contains?
configuration files for routes, databases and more.
config.ru is?
The Rack configuration file for Rack based servers used to start the application.
db/ contains?
The current database scheme and database migrations.
Gemfile & Gemfile.lock are?
The files that allow specification of gem dependencies needed for the application. These files are used by the bundled gem.
lib/ contains?
Extended modules for the application.
log/ contains?
Application log files.
public/ contains?
Static files and compiled assets. Seen by the world as-is.
Rakefile is?
The file that 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 this file, new tasks should be added in files to the lib/tasks directory of the application.
README.rdoc is?
A brief instruction manual for the application. Edit this file to tell others what the app does, how to set it up, and so on.
test/ contains?
All test files and helpers for the application. Divided into sub folders.
tmp/ contains?
Temporary file like cache, pid and session files.
vendor/ contains?
Alice for all third party code. In a typical Rails app this include vendored gems.