diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-01-31 17:15:50 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-01-31 17:15:50 +1100 |
commit | 99d30f0f31578c462ef317b4dc98b112196fe713 (patch) | |
tree | 2715ad48ddabb60352bdf3b84e9c69c738c4bd89 | |
parent | 59b5b15d56600ffc26d657dfea134ffcfc879725 (diff) |
Controller tests were failing for these actions - switching to more concise URL helpers seemed to fix things up
-rw-r--r-- | app/controllers/admin_public_body_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin_public_body_controller.rb b/app/controllers/admin_public_body_controller.rb index c6904da95..fbb081482 100644 --- a/app/controllers/admin_public_body_controller.rb +++ b/app/controllers/admin_public_body_controller.rb @@ -127,14 +127,14 @@ class AdminPublicBodyController < AdminController if public_body.info_requests.size > 0 flash[:notice] = "There are requests associated with the authority, so can't destroy it" - redirect_to admin_url('body/show/' + public_body.id.to_s) + redirect_to admin_body_show_url(public_body) return end public_body.tag_string = "" public_body.destroy flash[:notice] = "PublicBody was successfully destroyed." - redirect_to admin_url('body/list') + redirect_to admin_body_list_url end end |