RailsCasts Pro episodes are now free!

Learn more or hide this

Ricardo Pacheco's Profile

GitHub User: ricardopacheco

Site: http://ricardopacheco.github.com

Comments by Ricardo Pacheco

Avatar

def sweep not working for me.

this yes:

ruby
 def sweep(banner)
    ActionController::Base.new.expire_fragment("fragment_tabs-banners-parnaiba")
 end

Just had to add: ActionController::Base.new.expire_fragment