Bugs in Commonly-Used Classes Have Wide Effects
Learn about the impacts stemming from bugs in commonly utilized Rails classes.
We'll cover the following...
We'll cover the following...
Let’s talk about the interdependence of pieces of code. Some methods are called in only one place in the application, while others are called in multiple places.
How does the controller
method work?
Consider a controller
method. In most Rails apps, there is only one way a controller method gets called: when an HTTP request is issued to a specific resource with a specific method. For example, we might issue an HTTP GET to the URL /widgets
. That will invoke the index
method of the WidgetsController
.
How does the find
method work?
Now, consider the find
method on User
. This method gets called in many more places. In applications that have authentication, it’s possible ...