From 841cdad0100ebd381dc1dc04d0c6c49d57615c73 Mon Sep 17 00:00:00 2001 From: wvengen Date: Sat, 2 Nov 2013 10:57:37 +0100 Subject: [PATCH] add missing routes to wiki plugin --- lib/foodsoft_wiki/config/routes.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/foodsoft_wiki/config/routes.rb diff --git a/lib/foodsoft_wiki/config/routes.rb b/lib/foodsoft_wiki/config/routes.rb new file mode 100644 index 00000000..29a5ebef --- /dev/null +++ b/lib/foodsoft_wiki/config/routes.rb @@ -0,0 +1,15 @@ +Rails.application.routes.draw do + + scope '/:foodcoop' do + + resources :pages do + get :all, :on => :collection + get :version, :on => :member + get :revert, :on => :member + end + match '/wiki/:permalink' => 'pages#show', :as => 'wiki_page' # , :constraints => {:permalink => /[^\s]+/} + match '/wiki' => 'pages#show', :defaults => {:permalink => 'Home'}, :as => 'wiki' + + end + +end