Forum: Ruby on Rails fleximage : caching issue

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
934f858e451cf9b771996b2940cd696b?d=identicon&s=25 Raj Singh (dorelal)
on 2006-12-23 18:25
(Received via mailing list)
fleximage plugin is working great. but I'm running into issues with

The doc says

Now when page caching is active, the size is baked into the filename.

Does it mean that I must use page level caching. I can't use page level
caching since the pages are dynamic. I thought of using fragement
but here also I ran into issue. Here is my controller

class ProductImagesController < ApplicationController

  flex_image :action => 'show',:class => ProductImage
  flex_image :action => 'small',:class => ProductImage,:size => '100x40'
  flex_image :action => 'medium',:class => ProductImage,:size =>

  def create
    img = ProductImage.create(:data => params[:image][:data])
    redirect_to :action => 'show', :id => img

I also have following lines in routes.

  map.product_image 'product_images/show/:id/:size/image.jpg',
                    :controller => 'product_images',
                    :action => 'show'

the url to get the image is

Here I don't even get an opportunity to do fragement chaching since
there is
no method in my controller called medium.

Does anyone have snippet of code explaining how to do caching with

- Neeraj
This topic is locked and can not be replied to.