#!/usr/bin/env ruby require 'nitro' # The prototype controller. class Proto def index %{ Nitro, Feel the magic!

You have successfully installed Nitro!

Before you move on, verify that the following conditions have been met:

  1. The log directory and the empty log files must be writable to the web server (chmod -R 666 log/*).
  2. The shebang line in the ctl file must reference your Ruby installation.
    You might need to change it to #!/usr/bin/env ruby or point directly at the installation.

Have a look at the examples:

  1. examples/blog: A simple Blog, featuring a nice XSLT based template.
  2. examples/no_xsl_blog: The same example without using XSLT (easier to setup under Windows).
  3. examples/why_wiki: A conversion of why_'s wiki.
  4. examples/wee_style: A Wee-style (ruby code only) example.
  5. examples/ajax: Implement Google suggest-style functionality using ajax techniques.
  6. examples/tiny: A small example to verify your installation.

Here is what do next:

  1. Add your xhtml files in the 'public' directory. Those files are automagically converted to controller actions by Nitro
  2. Place additional media files, css, or xsl files in the public directory.
  3. Create your models and controllers.
  4. Develop your application utilizing Nitro's powerful features.

Having problems getting up and running?
First try debugging it yourself by looking at the log files. If you get stuck, post your problem to the Nitro Mailing List at Rubyforge.



} end end Nitro.run(Proto) # * George Moschovitis