diff options
| author | hukl <contact@smyck.org> | 2009-03-02 17:22:48 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-02 17:22:48 +0100 |
| commit | 113449eacba67625004b14081f4cc0cc3b984553 (patch) | |
| tree | 1114418aa27ffc3f815a05caba16c4d80395163f /config | |
| parent | ddc961fd81b37b44078fba35f0769b661e1e81ce (diff) | |
added unlock functionality. not yet hooked up with permissions though. anybody can unlock. put a confirmation in front of it. destroy has to be confirmed as well
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5f2a9dc..4305a21 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -9,7 +9,7 @@ ActionController::Routing::Routes.draw do |map| | |||
| 9 | map.filter :locale | 9 | map.filter :locale |
| 10 | 10 | ||
| 11 | map.resources :pages | 11 | map.resources :pages |
| 12 | map.resources :nodes, :member => {:publish => :put} | 12 | map.resources :nodes, :member => {:publish => :put, :unlock => :put} |
| 13 | 13 | ||
| 14 | map.logout '/logout', :controller => 'sessions', :action => 'destroy' | 14 | map.logout '/logout', :controller => 'sessions', :action => 'destroy' |
| 15 | map.login '/login', :controller => 'sessions', :action => 'new' | 15 | map.login '/login', :controller => 'sessions', :action => 'new' |
