Displaying 1 result from an estimated 1 matches for "signature_path".
2008 Apr 01
1
"Undefined method merge" when using sweeper
...l"
part of the error message is the cached page.
Here''s my sweeper:
class FooSweeper < ActionController::Caching::Sweeper
observe Foo
def after_save(foo)
expire_cache(foo)
end
def after_destroy(foo)
expire_cache(foo)
end
def expire_cache(foo)
expire_page signature_path(:opaque_id => foo.opaque_id) # line 13
expire_page signature_image_path(:opaque_id => foo.opaque_id)
end
end
The signature_path(:opaque_id => string) generates "/signature/
string.html" route, so this part works correctly.
Here''s stack trace:
.../vendor/rails/ac...