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