Posted By: George Moschovitis
Date: 2005-09-04 05:21
Summary: Nitro + Og 0.23.0
Project: Nitro

The summer vacations are over and there is a brand new Nitro
release. There is a preview of the new Scaffolder (also handles
Og relations), support for Tagging (folksonomy), lots of small
features and improvements and many bug fixes. Additionally, the
code has been restructured to utilize the excellent Nano and Mega
support libraries.

Most notable additions:

* Scaffolding reloaded. The scaffolding infrastructure is
reimplemented to generate more flexible code. The automatically
generated forms allow for visualization and editing of
Og relations such as HasMany and BelongsTo.

For example when rendering a BelongsTo relation all possible
parents are presented with a select element. When rendering a
HasMany relation a list of all children is presented.

Moreover, an experimental admin component is provided. Just add the
line:

require 'part/admin'

and surf

http://www.mysite.com/admin

To enter a simple administration screen.

WARNING: This feature is considered a preview and will be
improved in a future version.

* Major cleanup in the Glue subproject. Some files are moved
to the nano/mega project. Nano/Mega is now used throughout
Nitro and really makes development so much easier.

* Introduced Og Taggable mixin. It was never easier to add
tagging to your application.

class Article
include Og::Taggable
..
end

article.tag('navel', 'gmosx', 'nitro')
article.tags
article.tag_names
Article.find_with_tags('navel', 'gmosx')
Article.find_with_any_tag('name', 'gmosx')

t = Article::Tag.find_by_name('ruby')
t.articles
t.articles.count

For an example usage of this Mixin, consult the Spark sources.

* Added support for relative and absolute URLs in redirects
and renders. This feature simplifies the creation of reusable
components.

* Support for assigning compound objects from the request. Here
is an example:

class Article
property :title, String
property :body, String
end

<form>
<input type="text" name="article.title" />
<input type="text" name="article.body" />
</form>

article = request.assign('article')

Alternatively you can use the article[title] article[body]
notation.

* Added simple Benchmarking mixin.

* Added support for 'evolving' a single Og managed class. Useful
when you are in development mode and change your schema.

* Added support for session garbage collection.

* Many many small bug fixes in Og and Nitro.

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: nitro---og-0.23.0

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post