wiki_columnwiki_column is a Ruby on Rails plugin that adds simple wiki functionality to your app. Wiki column allows you to specify a model that will act as your wiki storage, but then you can define any column to be a wiki column.
For instance, if you have a Product model that has a description. You could define description as a wiki_column, you could then use wiki syntax in that field and it would be formatted as such, including links to your wiki.
wiki_column uses RedCloth for basic formatting.
wiki_column is the result of web development work at Assay Depot.
InstallationFirst you have to have RedCloth installed
sudo gem install RedClothNext, install the plugin
./script/plugin install http://wiki-column.googlecode.com/svn/trunk/wiki_columnNow generate your wiki model
./script/generate scaffold_resource WikiPage slug:string body:text created_at:datetime updated_at:datetimeNext, in your WikiPage show.rhtml, change
<%=h @wiki_page.content %>to
<%= @wiki_page.wiki_content %>Finally, add a new wiki resource to your routes.rb file.
map.resources :wiki, :controller => 'wiki_pages'FormattingYou can use all the standard textile formatting commands. Additionally, links are to other wiki pages should be surrounded by . For example, to link to a page with the slug ProductInformation, use the following:
[ProductInformation]
Ohloh computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Ohloh cannot perform this analysis
Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Ohloh can generate statistics! It's fast and easy - try it and see!
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.