mjuneja / tog-wiki

A wiki plugin for tog

This URL has Read+Write access

name age message
file README.markdown Tue Nov 25 23:54:20 -0800 2008 some modifications in readme [surat pyari]
file README.markdown~ Tue Nov 25 23:54:20 -0800 2008 some modifications in readme [surat pyari]
directory app/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
directory config/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
directory db/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
file init.rb Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
file init.rb~ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
directory locale/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
directory public/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
directory test/ Tue Nov 25 22:56:28 -0800 2008 initial comit [surat pyari]
README.markdown

Tog Wiki

Included functionality

  • creating a wiki-page
  • editing a wiki page
  • viewing previous version of a page
  • roll back to previous version
  • searching functionality

Plugin requirements

* tog_core
* acts_as_versioned
* thinking-sphinx

Install

  • Install plugin from source:
ruby script/plugin install git@github.com:mjuneja/tog-wiki.git
  • Generate installation migration:

ruby script/generate migration install_tog_wiki

with the following content:

  class InstallTogUser < ActiveRecord::Migration

def self.up
  migrate_plugin "tog_wiki", 2
end

def self.down
  migrate_plugin "tog_wiki", 0
end

end

  • Add tog wiki's routes to your application's config/routes.rb
map.routes_from_plugin 'tog_wiki'
  • Create sphinx indexes
rake thinking_sphinx:index
  • Connect to Sphinx Daemon
rake thinking_sphinx:start
  • And finally you can migrate the db to add the tog wiki specific tables and copy its resources to public directory:
rake db:migrate
rake tog:plugins:copy_resources