changed redirect to use route paths
This commit is contained in:
parent
fb3beb3859
commit
cd3b57ef45
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue