rubyonrailsin

A Ruby and Rails talk

Wednesday, March 31, 2010


[Rails] Re: New to cacheing

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Another odd thing maybe someone can clear up for me.

In my sweepers I currently have:

def expire_cache
expire_action root_path
end

but my cache isn't being expired, so I figured I would put the route in
manually

def expire_cache
expire_action :controller => 'site', :action => 'index'
end

and I get this error:

ActionController::RoutingError (No route matches
{:controller=>"admin/site", :action=>"index"}):


Now, obviously I'm updating the model in the admin section, but I'm not
specifying my controller to be 'admin/site'. I just want to update
object in the admin section, and update the cache on the front end of
the site.
--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive