#!/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:
- The log directory and the empty log files must be writable to the web server (
chmod -R 666 log/*
).
-
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 Spark, Flare and the examples archive available for download at
http://www.rubyforge.org/projects/nitro/files:
- examples/blog: A simple Blog, featuring a nice XSLT based template.
- examples/no_xsl_blog: The same example without using XSLT (easier to setup under Windows).
- examples/why_wiki: A conversion of why_'s wiki.
- examples/wee_style: A Wee-style (ruby code only) example.
- examples/ajax: Implement Google suggest-style functionality using ajax techniques.
- examples/tiny: A small example to verify your installation.
Here is what do next:
- Add your xhtml files in the 'public' directory. Those files are
automagically converted to controller actions by Nitro
- Place additional media files, css, or xsl files in the public directory.
- Create your models and controllers.
- 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