Displaying 3 results from an estimated 3 matches for "new_product".
Did you mean:
view_product
2005 Dec 15
3
Another session question
...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 on what
## tab the...
2006 May 19
7
How can I set up relations for these models?
Hello!
I have a legacy DB and want to use ActiveRecord for it.
However, I can''t set up a relation correctly.
Here''s table spec:
[products]
id
name
price
[subproducts]
product_id
subproduct_id
Some example data:
[products]
1, "Computer", 500.00
2, "Monitor", 200.00
3, "Printer", 100.00
4, "System", 700.00
5, "System2",
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to