carrierwave snippets

SEO optimizing CarrierWave URLs

Tagged seo, carrierwave, url, filename  Languages apacheconf
class ProductImageUploader < CarrierWave::Uploader::Base

  def store_dir
    "product"
  end

  def filename
    ext = File.extname(original_filename) if original_filename
    "#{model.name.parameterize}#{ext}"
  end
end