changed redirect to use route paths

This commit is contained in:
Jonathan Kolyer 2014-02-15 18:33:41 -06:00
parent fb3beb3859
commit cd3b57ef45
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ ActiveAdmin.register JamRuby::PromoBuzz, :as => 'Buzz' do
def create
promo = PromoBuzz.create_with_params(params[:jam_ruby_promo_buzz])
redirect_to('/admin/admin/buzzs')
redirect_to admin_buzzs_path
end
def edit
@ -60,7 +60,7 @@ ActiveAdmin.register JamRuby::PromoBuzz, :as => 'Buzz' do
def update
resource.update_with_params(params[:jam_ruby_promo_buzz]).save!
redirect_to('/admin/admin/buzzs')
redirect_to admin_buzzs_path
end
end