Action Mailer is a framework for designing email-service layers. These layers are used to consolidate code for sending out forgotten passwords, welcome wishes on signup, invoices f
Read tutorial ↗Action Pack splits the response to a web request into a controller part (performing the logic) and a view part (rendering a template). This two-step approach is known as an action,
Read tutorial ↗Data definitions are specified only in the database. Active Record queries the database for the column names (that then serves to determine which attributes are valid) on regular o
Read tutorial ↗Active Record connects business objects and database tables to create a persistable domain model where logic and data are presented in one wrapping. It‘s an implementation of the
Read tutorial ↗The Find module supports the top-down traversal of a set of file paths. For example, to total the size of all files under your home directory, ignoring anything in a "dot" director
Read tutorial ↗Forwardable makes building a new class based on existing work, with a proper interface, almost trivial. We want to rely on what has come before obviously, but with delegation we ca
Read tutorial ↗Generator converts an internal iterator (i.e. an Enumerable object) to an external iterator. Note that it is not very fast since it is implemented using continuations, which are cu
Read tutorial ↗GServer implements a generic server, featuring thread pool management, simple logging, and multi-server management. See xmlrpc/httpserver.rb in the Ruby standard library for an exa
Read tutorial ↗The Observer pattern, also known as Publish/Subscribe, provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes.
Read tutorial ↗You must open a connection to an SMTP server before sending messages. The first argument is the address of your SMTP server, and the second argument is the port number. Using SMTP.
Read tutorial ↗Messages are written to files named ‘inbox/1', ‘inbox/2', .… Replace ‘pop.example.com' with your POP3 server address, and ‘YourAccount' and ‘YourPassword' with the appr
Read tutorial ↗An IMAP client connects to a server, and then authenticates itself using either authenticate() or login(). Having authenticated itself, there is a range of commands available to it
Read tutorial ↗