summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-21 14:38:14 +0100
committerhukl <contact@smyck.org>2009-02-21 14:38:14 +0100
commit4c3d622b3795836e1e7be4df303ee256a88b2812 (patch)
treee644596d27e4943477a76ab516ed50a1d63a2ab2 /config
parent6eb546b6cbd2fa39d2663ab83b44fbde10507d70 (diff)
adding @node filter for publish action and setting
a new member route for the nodes resource so that a put request on /nodes/id/publish will publish the current draft of a node
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 6365186..ff9a13b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,7 +2,7 @@ ActionController::Routing::Routes.draw do |map|
2 map.filter :locale 2 map.filter :locale
3 3
4 map.resources :pages 4 map.resources :pages
5 map.resources :nodes 5 map.resources :nodes, :member => {:publish => :put}
6 6
7 map.logout '/logout', :controller => 'sessions', :action => 'destroy' 7 map.logout '/logout', :controller => 'sessions', :action => 'destroy'
8 map.login '/login', :controller => 'sessions', :action => 'new' 8 map.login '/login', :controller => 'sessions', :action => 'new'