Revision: 2865
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 30, 2007 00:56 by winson
Initial Code
def add book = Book.find(params[:id]) or raise ActiveRecord::RecordNotFound # Added by sending book object. flash[:cart_notice] = "'#{book.title}' was added!" if @cart.add book redirect_to :action => 'index' end
Initial URL
Initial Description
Initial Title
My add book to cart
Initial Tags
textmate
Initial Language
Rails