Skip to content

Instantly share code, notes, and snippets.

@lbramos
Created June 29, 2015 21:14
Show Gist options
  • Save lbramos/a446e1af97539f81c17e to your computer and use it in GitHub Desktop.
Save lbramos/a446e1af97539f81c17e to your computer and use it in GitHub Desktop.
# if you create subfolders inside assets/images you will need to add them to the path
# just put this code inside application.rb
Dir.glob("#{Rails.root}/app/assets/images/**/").each do |path|
config.assets.paths << path
end
# thanks to @depa at http://stackoverflow.com/questions/21502608/rails-4-asset-pipeline-image-subdirectories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment