Prev | Current Page 329 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

This makes sense when you consider the fact that Ruby does not really create an
object from a class until the class is actually referenced during the execution of the program.
ConnectionFailed
This error is generally raised when there are problems between the communication of the
machine from which you are running your code and the machine that your database is running
on (assuming they are different).
This type of error is raised because of issues outside of your code, so we cannot show you
an example that creates this error. In our experience, this error is most common when the connection
between your application machine and your database machine is lost while your
application is running. Generally, after repairing the connection between the machines, you can
simply restart your application, and things will once again be fine.
CHAPTER 6 ?–  ACTIVE RECORD TESTING AND DEBUGGING 148
RecordNotFound
This error is raised when a find method cannot find any results within the database.
It??™s important to note that this error is raised only when doing find operations in association
with ID values, that is, only the simple find method.


Pages:
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341