Fix admin redirect_to url_helper path.

This commit is contained in:
邱博亞 2024-06-26 23:50:27 +08:00
parent 41c2c6071a
commit e51824a345
1 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,7 @@ class Admin::GalleriesController < OrbitAdminController
rescue => e
puts e.inspect
end
redirect_to :controller=> 'images' ,:action => 'crop_process'
redirect_to admin_galleries_crop_process_path
end
def save_crop
@ -198,7 +198,7 @@ class Admin::GalleriesController < OrbitAdminController
rescue => e
puts e.inspect
end
redirect_url = "/admin/galleries/crop_process"
redirect_url = admin_galleries_crop_process_path
render :json => {'href' => redirect_url}.to_json
end
def call_translate
@ -301,7 +301,7 @@ class Admin::GalleriesController < OrbitAdminController
params_album_setting = params.require(:album_setting).permit!
end
AlbumSetting.first.update_attributes(params_album_setting)
redirect_to '/admin/galleries'
redirect_to admin_galleries_path
end
def setting
@album_setting = AlbumSetting.first
@ -638,7 +638,7 @@ class Admin::GalleriesController < OrbitAdminController
end
update_children_image_tag(album,tagsToDestroy,tagsToAdd)
album.update_attributes(album_params)
redirect_to "/admin/galleries/"+album.id.to_s
redirect_to admin_gallery_path(album.id)
end
def update_children_image_tag(album,tagsToDestroy,tagsToAdd)