First steps for an own wiki.

* Scaffold for Page Objekt
* Using textile for rendering html
* Easy wiki-links with [[wikipage]]
This commit is contained in:
Benjamin Meichsner 2009-03-25 19:54:04 +01:00
parent 37199bae1d
commit f450070dbf
16 changed files with 252 additions and 1 deletions

View file

@ -68,6 +68,7 @@ Rails::Initializer.run do |config|
config.gem "fastercsv"
config.gem "prawn"
config.gem "haml", :version => '>=2.0.6'
config.gem 'RedCloth'
# The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
# All files from config/locales/*.rb,yml are added automatically.

View file

@ -1,4 +1,6 @@
ActionController::Routing::Routes.draw do |map|
map.resources :pages, :collection => { :all => :get }
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show'
map.logout '/logout', :controller => 'login', :action => 'logout'
map.my_profile '/home/profile', :controller => 'home', :action => 'profile'