[ANN] Nitro + Og 0.13.0


George Moschovitis

Hello everyone,

new versions of Nitro and Og were just released.

Homepage: http://nitro.rubyforge.org

A snapshot of the latest code. The Nitro project is now split in three
gems (nitro, og, glue) and the code is better separated. Many changes
were made to make programming with Nitro more similar to Rails, to make
the platform more accessible to newcomers. A conversion of ActionMailer
and an AJAX example are also included.

Most notable Nitro changes:

* Introduced Mailer subsystem:

class MyMailer < Mailer
def registration_email(to, username, password)
@from = '(e-mail address removed)'
@to = to
@subject = 'Registration information'
@body.username = username
@body.password = password

the tempate (registration_email.xhtml):

Hello #{username}

Thanks for registering, your password is '#{password}'

Then use it like this:

MyMailer.deliver_registration_email('(e-mail address removed)', 'gmosx',

For more information, check out the updated blog example.

* AJAX example, demonstrates how to use ajax techniques with Nitro. A
simple Google Suggest style UI is implemented.

* Use a Rails compatible directory structure. Check out the updated
blog example. Please note that Nitro does not force a directory
structure (see an alternative structure in the no_xsl_blog example).

* Optional separate template_root/public_root for extra security.

* Further code cleanup and bug fixes.

Most notable Og changes:

* Better separated from Nitro.

* Database related validations (validate_unique) etc.

* Emmit warnings on implicit graph changes.

* Many bugfixes.

Nitro is an efficient, yet simple engine for developing professional
Web Applications using the Ruby language. Nitro aims to provide a
robust infrastructure for scalable web applications that can be
distributed over a server cluster. However, Nitro can also power simple
web applications for deployment on intranets or even personal
computers. Nitro integrates the powerful Og Object-Relational mapping

Nitro is a multiparadigm application framework and will integrate ideas
from Rails, Wee, PHP, JSP and .NET

Nitro integrates the Og (ObjectGraph) object-relational mapping
library. Og provides transparent serialization of object graphs to a
RDBMS backend. Unlike other similar libraries Og maps standard Ruby
objects to SQL tables and not vice versa. Og provides a meta language
to describe the relations between objects, a flexible and intuitive api
for querieng the database, raw access to the SQL language if needed
(for example to fine tune the automatically generated SQL tables, or
for custom queries), suports deserialization to Ruby objects or tuples,
automatically generates join tables for many_to_many relations and
provides a collection of usefull Mixins to synthesize common Entities.

Og is a combination of the best features of Active Record and the
former O-R mapping library included in Nitro (NDB). Adapters for
PostgreSQL, MySQL, SQLite and Oracle are included.

I hope this software will be useful for you, and I would love to
receive your suggestions, ideas and bug reports.

have fun,
George Moschovitis

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Members online

Forum statistics

Latest member

Latest Threads