Ricardo Berdejo
Ricardo Berdejo
@daemir @petermiles this is my code, this is what I did, feel free to use as you wish https://gist.github.com/ricbermo/55c31b21a283c694bd7777301cb81484
This is a very nice feature, but, what if the user doesn't define any version?.
Yes, sorry, my fault. didn't see that. may I ask you something, are you getting an error with fog when you use amazon s3 as storage?. I'm getting one weird...
Hi, i was about to update my comment, this is what is causing the "fog" problem; it's not fog actually, https://github.com/BrandyMint/rich/blob/nitr/feature/carrierwave_uploader/lib/rich/backends/carrierwave.rb#L41
I could find the error I was trying to let you know before, if I don't include ``` ruby version :rich_thumb do process :resize_to_fit => [100, 100] end ``` in...
I change your code to this ``` ruby module DefaultCarrierwaveVersions Rich.image_styles.each do |name, size| unless Rich.uploader.constantize.versions.include? name Rich.uploader.constantize.send :version, name.to_s do process :resize_to_fit => size.gsub("#", "").split("x").map(&:to_i) end end end end...
My friend, there's something new that you should change in your commit in order to make it work with fog and your custom uploader. ``` ruby def uri_cache uri_cache_attribute =...
Another thing, you cannot use the same uploader for images and files :/
yes. the uploader can be configured in order to use S3.
to be honest I don't remember but I'd say that it's exactly how you did it. Set up your backend to carrierwave, set the name of your carrierwave uploader and...