Ruby on Rails
SQLiki (Version #6)

General info

Rubyforge project page

A Rails generator? for adding a simple (at this point) SQL based wiki to a Rails application. This is scratching a personal itch (Madeleine crashes occasionally & although Instiki uses Rails it isn’t easy to integrate it with more conventional applications).

Uses three tables (pages, drafts, and links) to store all content. It uses RedCloth (and the extention features thereof) for markup, integrates with the login_generator for rudimentary revision control, maintains a draft hierarchy (tree), and mostly works. I plan to expand on this base over the next few weeks.

Usage

NAME sqliki – creates a SQL-based wiki within a rails application SYNOPSIS sqliki [Controller name] Good names are Sqliki, Wiki, Chalkboard, Elmo, … DESCRIPTION This generator creates a rudimentary SQL-based wiki. EXAMPLE ./script/generate sqliki Wiki This will generate a Wiki controller which provides users: /wiki/index (==list) — list all pages (alphabeticaly) /wiki/wanted — ..pages with no content /wiki/orphaned — ..pages that aren’t linked to /wiki/recently_revised — ..pages in reverse order of edits /wiki/show/(page) — Show an existing page /wiki/create/(page) — Create a new page /wiki/edit/(page) — Edit an existing page …and additional methods for control flow / internal use: /wiki/raw /wiki/html /wiki/inplace_edit /wiki/destroy /wiki/rollback/(draft) The tables are always called pages, drafts, and links

General info

Rubyforge project page

A Rails generator? for adding a simple (at this point) SQL based wiki to a Rails application. This is scratching a personal itch (Madeleine crashes occasionally & although Instiki uses Rails it isn’t easy to integrate it with more conventional applications).

Uses three tables (pages, drafts, and links) to store all content. It uses RedCloth (and the extention features thereof) for markup, integrates with the login_generator for rudimentary revision control, maintains a draft hierarchy (tree), and mostly works. I plan to expand on this base over the next few weeks.

Usage

NAME sqliki – creates a SQL-based wiki within a rails application SYNOPSIS sqliki [Controller name] Good names are Sqliki, Wiki, Chalkboard, Elmo, … DESCRIPTION This generator creates a rudimentary SQL-based wiki. EXAMPLE ./script/generate sqliki Wiki This will generate a Wiki controller which provides users: /wiki/index (==list) — list all pages (alphabeticaly) /wiki/wanted — ..pages with no content /wiki/orphaned — ..pages that aren’t linked to /wiki/recently_revised — ..pages in reverse order of edits /wiki/show/(page) — Show an existing page /wiki/create/(page) — Create a new page /wiki/edit/(page) — Edit an existing page …and additional methods for control flow / internal use: /wiki/raw /wiki/html /wiki/inplace_edit /wiki/destroy /wiki/rollback/(draft) The tables are always called pages, drafts, and links