# Expire fragment not completing on model save

**URL:** <https://www.ruby-forum.com/t/expire-fragment-not-completing-on-model-save/131686>\
**Category:** Rails\
**Created:** [March 12, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/expire-fragment-not-completing-on-model-save/131686 "2008-03-12T14:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonesail](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/35a633/32.png) [@gonesail](https://www.ruby-forum.com/u/gonesail)\
**Post date:** [March 12, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/expire-fragment-not-completing-on-model-save/131686/1 "2008-03-12T14:31:03Z")

</div>

ok for the ROR experts:: i have a controller that creates another model  
(not the same name as the controller) by doing classify.constantize on a  
string. then doing a save on that model which implements fragment  
caching … the sweeper method missing gets called (this is normal for  
the rails code) but does not complete because @controller is nil in the  
ActionController caching.rb module. i want rails to expire the fragment  
like it is advertised to do … any ideas?
