FlexiRecord is a Ruby library for object-oriented access to databases (object-relational-mapping/ORM). Each table is represented by a class, and each row of that table is represented by an object of that class. This library is especially aimed to properly support database transactions. Currently, only PostgreSQL (version 8.2 or higher) is supported as a backend.
The Mechanize library is used for automating interaction with websites. It automatically stores and sends cookies, follows redirects, can follow links, and submits forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites you have visited as a history.