Frameworks Flashcards

0
Q

app/ contains?

A

The controllers, models, views, helpers, mailers and assets for the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Folders and files generated by:

rails new application_name

A

Folders: app; bin; config; db; lib; log; public; test; tmp; vendor.

Files: .gitignore; config.ru; Gemfile; Gemfile.lock; Rakefile; README.rdoc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

bin/ contains?

A

The rails script that starts the app and can contain other scripts used to setup, deploy or run the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

config/ contains?

A

configuration files for routes, databases and more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

config.ru is?

A

The Rack configuration file for Rack based servers used to start the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

db/ contains?

A

The current database scheme and database migrations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Gemfile & Gemfile.lock are?

A

The files that allow specification of gem dependencies needed for the application. These files are used by the bundled gem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

lib/ contains?

A

Extended modules for the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

log/ contains?

A

Application log files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

public/ contains?

A

Static files and compiled assets. Seen by the world as-is.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Rakefile is?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

README.rdoc is?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

test/ contains?

A

All test files and helpers for the application. Divided into sub folders.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

tmp/ contains?

A

Temporary file like cache, pid and session files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

vendor/ contains?

A

Alice for all third party code. In a typical Rails app this include vendored gems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly