Displaying 1 result from an estimated 1 matches for "add_to_product_factory".
2005 Dec 15
3
Another session question
...m to create a new Product, but instead of
persisting the product to the database I want to store it in a
session first for category assignment, etc.. (in other controllers)
So when the user describes the product on the form I have a "Save and
Continue" button pointing to the action add_to_product_factory:
def new_product
@product = get_product
end
def add_to_product_factory
@product = Product.find(params[:product])
## Will the code below grab the
## original Product Object
@product = get_product
@product.add_product(product)
## Here I want to determine the action based o...