Fix admin redirect_to url_helper path.
This commit is contained in:
parent
41c2c6071a
commit
e51824a345
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue