diff options
author | Robin Houston <robin@lenny.robin> | 2011-07-21 18:10:43 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-07-21 18:10:43 +0100 |
commit | 72c5b1c24bc62e5799cd76c1ae914027bd542ef9 (patch) | |
tree | 9a533f4d65e7d13a37e0f82b2ffbb3583c9be262 | |
parent | 51f9ab2ac1b779e31aa54ebf9485a1a72eb7cee0 (diff) |
Fix the routing so that censor rules can be edited through the admin interface.
-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 9765b26b8..d9989a800 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -192,7 +192,7 @@ ActionController::Routing::Routes.draw do |map| rule.admin_rule_new '/admin/censor/new', :action => 'new' rule.admin_rule_create '/admin/censor/create', :action => 'create' rule.admin_rule_edit '/admin/censor/edit/:id', :action => 'edit' - rule.admin_rule_update '/admin/censor/update', :action => 'update' + rule.admin_rule_update '/admin/censor/update/:id', :action => 'update' rule.admin_rule_destroy '/admin/censor/destroy/:censor_rule_id', :action => 'destroy' end map.filter('conditionallyprependlocale') |