search for: idlefingers

Displaying 3 results from an estimated 3 matches for "idlefingers".

2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my app expiring the same fragments and so have been trying to move all the expire_fragment calls into another model which the sweepers can then use but it''s not working as I''d hoped.. I''ve created a CacheDestroyer model and want to be able to call something to the effect of:
2008 Jan 22
4
resizing images for display only with image_tag()
image_tag() has :size option, but only takes height/width parameters. i want to be able to scale down the image by 50% because all my images are different sizes so i cannot be specific as image_tag() wants me to be. is there another RoR method i could use. note: i don''t want to resize my original images, i just want to be able to display them %50 smaller. hope i make sense. btw, great
2007 Nov 21
0
Expiring page caches with regexp?
Is there a way to expire page caches using regular expressions like you can with fragment caches? I''m writing an app which has a catalogue style product listing but not full on e-commerce. It''s pretty simple; with just categories and products within them. A url for a product called "Band Saws" within the category "Heavy duty saws" would look like