# Uninitialized constant ActionWebService::Dispatcher::ActionC

**URL:** <https://www.ruby-forum.com/t/uninitialized-constant-actionwebservice-actionc/112243>\
**Category:** Rails\
**Created:** [August 16, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actionwebservice-actionc/112243 "2007-08-16T18:50:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [August 16, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actionwebservice-actionc/112243/1 "2007-08-16T18:50:43Z")

</div>

i’m looking at the peepcode video on caching with rails. later on in  
the video he shows a little hack so that the there will be a cached  
index.html file when you have a default route for the controller that  
you want cached.

he does it by adding an after filter for the index page:  
after\_filter :cache\_index, :only =\> [:index] and then adding that  
method in the controller:

protected

def cache\_index  
if(ActionController::Base.perform\_caching)  
FileUtils.cp File.join(RAILS\_ROOT, ‘public’, ‘tallies.html’),  
File.join(RAILS\_ROOT, ‘public’, ‘index.html’)  
end  
end

when using this though, i get the following error:  
uninitialized constant  
ActionWebService::Dispatcher::ActionController::Base

can anyone tell me why it’s doing this?  
thanks
