Sha256: c5f4cd528571837cc14df5a836f0c5a57ff89a9806df9db4e4c708d6a35295c4

Contents?: true

Size: 884 Bytes

Versions: 5

Compression:

Stored size: 884 Bytes

Contents

= Blog

A simple blog.

== Configuration

Edit the file conf/webapp.rb as needed. Dont forget to set your name
and the password:

$blog_username = 'your name'
$blog_password = 'your password'

By default this example uses the MySQL backend. If you want to 
use a different backend dont forget to change it for the DEBUG
and LIVE configurations.

== Run

Exec the following command:

ruby app.rb --start

then point your browser to:

http://127.0.0.1:8080

(if you want to change the server address/port, edit the config.rb
file)

Click at 'Login as owner'

enter the password.

And start adding blog entries :)

== Discussion

The bulk of the code is in the file lib/blog.rb.
If you want to modify the example it is a nice idea to switch
to debug mode. Edit the following line in the file app.rb:

$DBG = true

In debug mode the view files (xhtml/xsl/etc) are automatically
reloaded.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nitro-0.4.1 examples/blog/README
nitro-0.5.0 examples/blog/README
nitro-0.6.0 examples/blog/README
nitro-0.7.0 examples/blog/README
nitro-0.8.0 examples/blog/README