* fix admin redirect
This commit is contained in:
parent
b704186e9a
commit
5d8fac92c6
|
|
@ -37,7 +37,7 @@ ActiveAdmin.register JamRuby::PromoLatest, :as => 'Latest' do
|
|||
|
||||
def create
|
||||
promo = PromoLatest.create_with_params(params[:jam_ruby_promo_latest])
|
||||
redirect_to('/admin/admin/latests')
|
||||
redirect_to('/admin/latests')
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
@ -48,7 +48,7 @@ ActiveAdmin.register JamRuby::PromoLatest, :as => 'Latest' do
|
|||
|
||||
def update
|
||||
resource.update_with_params(params[:jam_ruby_promo_latest]).save!
|
||||
redirect_to('/admin/admin/latests')
|
||||
redirect_to('/admin/latests')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue