How To Delete Unused Images From Rails Application.
In a Rails application, superfluous images will influence application load time and furthermore delayed down your test and convey pipeline. One of my new ventures was to attempt to recognize the unused images and eliminate them securely. It was a significant troublesome undertaking in the rails application to discover images that were not being used. Actually, It's difficult to check in case you're not utilizing every single one of them, so you can utilize the underneath Rake errand to flush out all the unused images and delete them. So Here is a Rake assignment to discover unused images in the Rails venture to erasure. 1) How to Create Rake task? Order: rails g task <namespace> <taskname> For Eg: rails g task image_cleaner find_unused_images rake document will produce inside the "lib/errands" organizer. Rake document body: How to execute? Run beneath rake task order in your undertaking catalog terminal:...