Recall & Review
beginner
What is the main reason Rails uses strict folder and file structure conventions?
Rails uses strict structure conventions to make it easy for developers to find and understand code quickly, improving teamwork and reducing mistakes.
Click to reveal answer
beginner
How do Rails conventions help new developers joining a project?
They provide a familiar layout so new developers can quickly know where to look for models, views, controllers, and other parts without confusion.
Click to reveal answer
intermediate
Why does following Rails conventions reduce bugs?
Because code is organized predictably, it’s easier to spot errors and avoid conflicts, making the app more stable and reliable.
Click to reveal answer
intermediate
What role do conventions play in Rails’ 'Convention over Configuration' philosophy?
Conventions let developers skip writing extra setup code, speeding up development by assuming standard ways to organize and name files.Click to reveal answer
beginner
Give an example of a Rails folder that must follow convention and explain why.
The 'app/models' folder must contain model files because Rails automatically loads models from there, so placing them elsewhere breaks this loading and causes errors.
Click to reveal answer
Why does Rails prefer strict folder structure conventions?
✗ Incorrect
Rails conventions organize code predictably, making it easier to find and maintain.
What happens if you put a model file outside the 'app/models' folder in Rails?
✗ Incorrect
Rails expects models in 'app/models' and won’t load them if placed elsewhere.
How do conventions help new developers on a Rails project?
✗ Incorrect
Conventions create a standard structure that new developers recognize immediately.
What is the benefit of 'Convention over Configuration' in Rails?
✗ Incorrect
Following conventions reduces the need for extra configuration, speeding up development.
Which folder in Rails typically contains controller files?
✗ Incorrect
Controllers are placed in 'app/controllers' by Rails convention.
Explain why following Rails structure conventions is important for teamwork and project maintenance.
Think about how a common folder layout helps everyone work together smoothly.
You got /4 concepts.
Describe how Rails’ 'Convention over Configuration' philosophy relates to folder and file structure.
Consider how Rails assumes where files are to avoid extra configuration.
You got /4 concepts.