Rails Configuration Flashcards

1
Q

Initializer: Backtrace Silencer - what does it do?

A

Allows you to shorten the backtrace (error messages) by eliminating unnecessary lines.

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

Initializer: Filter Parameter Logging - what does it do?

A

Filter parameter logging automatically filters sensitive information from your logs.

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

Initializer: Inflections

A

Responsibility is to transform strings from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys, etc.

You can test the treatment by using rails console.

ActiveSupport::Inflector.pluralize”project”

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

Initializer: MIME types

A

(DON’T KNOW)

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

Initializer: Secret Token

A

A secret token is a digital signature that is added to cookies so rails knows if it has been tampered with.

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

Initializer: Session Store

A

The session_- store.rb initializer configures the session store of the application, by setting its session store type and key.

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

How are assets served in the asset pipeline?

A

By default in development mode, JavaScript and CSS files are served separately in the order they were specified in their respective manifest files.

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