Ruby on Rails provides a structured approach to web scripting through its implementation of the model-view-controller pattern. It encourages separating code into logical components like models, views, and controllers. This makes code more organized and maintainable compared to unstructured "spaghetti code". Rails is a good framework for teaching web scripting as it enforces best practices and discipline through its conventions.