Displaying 1 result from an estimated 1 matches for "e2e1281f".
2006 Aug 13
3
Why isn''t log working (Pragmatic Programming book)
I''m working my way through the Pragmatic Programmer book on RoR.
Following their examples, I have the following code in a controller:
begin
@product = Product.find(params[:id])
rescue
flash[:notice] = "Invalid product"
logger.error("Attempt to access invalid product #{params[:id]}")
redirect_to :action => :index
else
@cart = find_cart