Written by Michael Fellinger, prepared for Oxyliquit by Fabian Buch
This is the first draft for doing an installation of Nitro on Apache 2. I am using an Ubuntu system; these intructions should work
This tip aims to define all methods to enchant a model (make it persistant).
Enchanting: Add the needed features like .find, the manager .ogmanager which contains the database connection pool,
You can use
def foo(apple) @out
and http::/url.com/foo/echo will echo echo to the screen. However nothing will be passed if you pass apple as
Written by Michael Fellinger and Andrew Thompson, edited by Fabian Buch
Templates have to be transformed to be finally presented to your browser. In Nitro there are several sta
This is how to make dynamic controls in Nitro 0.29 / 0.30 / 0.31 work!
This tip is deprecated in Nitro 0.40!
Dynamic because:
module Nitro module Form
class MyTex
For faster table creation you can use the table handler.
Let's take a table with "nick", "first_name", "last_name" and "email". The result might look like:
So, you've got a lot of data, which just won't fit on your page? You want it nicely spread over a few pages, and you just don't want to reinvent the wheel or spend hours doing it?
Here's how you do
ENV['NITROINVOKE'] ='fcgiproc' $0 = File.join(File.dirname(FILE), '..', 'run.rb') require $0
First, make sure you have a clean repository, if you're not sure, get a new version from the repo:
$ darcs get --partial http://repo.nitroproject.org nitro-dev
That g
This is a quick guide how elements work in nitro and how you can yield all their power with just a few keystrokes.
let's jump in - the following code usually is put in a file called 'skin.rb' and requ