On Wednesday, May 25, 2011 10:48:57 AM UTC-6, Ruby-Forum.com User wrote:
>
> hi
>
> ive followed along the depot book. i have a products table, cart,
> line_items. All works fine there with adding the products to the cart
> etc.
>
> now ive added another table user_products table. i want the user to be
> able to add these items to the cart also. but i dunno how to get this
> working. i tried to add in user_product code anywhere i saw code for the
> product table in the cart and line_item. also added that user_products
> belong to line_items too in the model like what is used for the products
> table.
>
> i added an extra column in line_item table for user_product_id.
>
> still cant get it working.
>
In what way doesn't it work? What is the error message and stack trace 
returned when it fails?

Also, if you want help here you're probably going to have to post some 
actual code, since just going off your description of what you did really 
tells us close to nothing. Debugging takes concrete data.
 

> any insight would be greatly appreciated need
> to get this fixed asap. can this be done..the cart taking in items from
> the products table and user_products table. Ive tried to find
> information on the web but to no avail..if anyone can point me to some
> info that would be great.
>
> -- 
> Posted via http://www.ruby-forum.com/.
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to