Displaying 1 result from an estimated 1 matches for "add_item_to_cart".
2006 Jan 16
0
expire_fragment problem
...''users'',:action=>''additem_to_cart'',:action_suffix=>@user.id) %>
At this point,rails has created 2 cache files correctly and everything works
fine becuase I dont see rails making calls to the SQL db to get items from
DB.Instead it uses cache.
Now in
def add_item_to_cart
expire_fragment (
:controller=>''users'',:action=>''additem_to_cart'',:action_suffix=>@user.id)
end
When I call expire_fragment,Rails creates a new directory ''users'' and a new
cache inside that directory but when rendering the view it stil...