I use Carrierwave to allow users to attach images to their posts. In the list of posts I display the thumbnails (in haml) as follows:
%td= image_tag post.image.url :thumb
If validation fails when creating a new post I display the cache like this:
= image_tag "/#{ImageUploader::cache_dir}/#{post.image_cache}"
What I can't figure out is how to display the cached thumbnail. Checking the filesystem confirms that it lives in the same directory as the cached image. I tried
= image_tag post.image_cache :thumb
but it errors with wrong number of arguments (1 for 0)