0
0
Ruby on Railsframework~10 mins

App folder organization in Ruby on Rails - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the folder where Rails stores controller files.

Ruby on Rails
app/[1]
Drag options to blanks, or click blank then click option'
Ahelpers
Bcontrollers
Cviews
Dmodels
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing controllers with models or views folders.
Using the helpers folder instead.
2fill in blank
medium

Complete the code to specify the folder where Rails keeps view templates.

Ruby on Rails
app/[1]
Drag options to blanks, or click blank then click option'
Acontrollers
Bassets
Cviews
Dmailers
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing the assets folder which holds images and stylesheets.
Confusing views with controllers.
3fill in blank
hard

Fix the error in the folder name where Rails stores model files.

Ruby on Rails
app/[1]
Drag options to blanks, or click blank then click option'
Amodel
Bmodules
Cmodals
Dmodels
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'model' instead of plural 'models'.
Confusing with 'modals' or 'modules'.
4fill in blank
hard

Fill both blanks to complete the paths for storing mailer classes and their views.

Ruby on Rails
app/[1] and app/[2]
Drag options to blanks, or click blank then click option'
Amailers
Bviews
Ccontrollers
Dmodels
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing mailers with controllers or models folders.
Putting mailer views inside mailers folder.
5fill in blank
hard

Fill both blanks to complete the path for storing JavaScript files in Rails 7 with import maps.

Ruby on Rails
app/[1]/[2]
Drag options to blanks, or click blank then click option'
Ajavascript
Bassets
Ccontrollers
Dpacks
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'packs' folder which is for Webpacker setups.
Thinking it's under the 'assets' folder.