Josh
2007-Aug-16 16:49 UTC
uninitialized constant ActionWebService::Dispatcher::ActionController::Base
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---