Rails Files and Folders Flashcards

1
Q

app/

A

Contains the controllers, models, views, helpers, mailers and assets for your application. You’ll focus on this folder for the remainder of this guide.

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

bin/

A

Contains the rails script that starts your app and can contain other scripts you use to setup, deploy or run your application.

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

config/

A

Configure your application’s routes, database, and more. This is covered in more detail in Configuring Rails Applications

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

config.ru

A

Rack configuration for Rack based servers used to start the application. (Won’t really be touching this one)

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

db/

A

Contains your current database schema, as well as the database migrations.

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

Gemfile & Gemfile.lock

A

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.

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

lib/

A

Extended modules for your application.

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

log/

A

Application log files

More specifically, a log of of things recorded from LocalHost3000

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

public/

A

The only folder seen by the world as-is. Contains static files and compiled assets.

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

Rakefile

A

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.

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

README.md

A

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.

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

test/

A

Unit tests, fixtures, and other test infrastructure.

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

tmp/

A

Temporary files (like cache, pid, and session files).

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

vendor/

A

A place for all third-party code. In a typical Rails application this includes vendored gems.

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