Forum: Ruby on Rails Conditional Action Caching?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Steve R. (Guest)
on 2006-03-12 20:51
I have a system that requires login. This is for administrative
purposes, so the pages will be the same as the public ones, except they
will have the edit|delete|new options.

Right now, I have:

caches_action :index

which works great, but I'd like:

caches_action :index unless user?

where user?() is defined in application.rb.

I get an exception using this construct. Can anyone help?

Thanks,

Steve
This topic is locked and can not be replied to.