rails code structure Flashcards

1
Q

rails application consists of …

A

/app
/bin
/config
/db
/lib
/log
/public
/storage
/tmp
/vendor
.gitattributes
.gitignore
.ruby-version
config.ru
Gemfile
Gemfile.lock
Rakefile
README.md

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

/app consists of …

A

/assets
/channels
/controllers
/helpers
/javascript
/jobs
/mailers
/models
/views

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

/bin consists of …

A

bundle
importmap
rails
rake
setup

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

/config consists of …

A

/environments
/initializers
/locales
application.rb
boot.rb
cable.yml
credentials.yml.enc
database.yml
environment.rb
importmap.rb
master.key
puma.rb
routes.rb
storage.yml

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

/db consists of …

A

seeds.rb

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

/lib consists of …

A

/assets
/tasks

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

/log consists of …

A

development.log

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

/public consists of …

A

404.html
422.html
500.html
apple-touch-icon-precomposed.png
apple-touch-icon.png
favicon.ico
robots.txt

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

/storage consists of …

A

-

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

/tmp consists of …

A

/cache
/pids
/storage
development_secret.txt

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

/vendor consists of …

A

/javascript

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

/app/assets consists of …

A

/config
/images
/stylesheets

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

/app/assets/config consists of …

A

manifest.js

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

/app/assets/images consists of …

A

-

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

/app/assets/stylesheets consists of …

A

application.css

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

/app/channels consists of …

A

/application_cable/channel.rb
/application_cable/connection.rb

17
Q

/app/controllers consists of …

A

/conserns
application_controller.rb

18
Q

/app/helpers consists of …

A

application_helper.rb

19
Q

/app/javascript consists of …

A

/controllers
application.js

20
Q

/app/javascript/controllers consists of …

A

application.js
hello_controller.js
index.js

21
Q

/app/jobs consists of …

A

application_job.rb

22
Q

/app/mailers consists of …

A

application_mailer.rb

23
Q

/app/models consists of …

A

/conserns
application_record.rb

24
Q

/app/views consists of …

A

/layouts/application.html.erb
/layouts/mailer.html.erb
/layouts/mailer.text.erb

25
Q

/config/enviroments consists of …

A

development.rb
production.rb
test.rb

26
Q

/config/initializers consists of …

A

assets.rb
content_security_policy.rb
filter_parameter_logging.rb
inflections.rb
permissions_policy.rb

27
Q

/config/locales consists of …

A

en.yml

28
Q

/tmp/cache consists of …

A

/assets
/bootsnap