Colin Law wrote in post #1001149:
> On 25 May 2011 22:05, Caroline M. <[email protected]> wrote:
>> Colin,
>>
>> user_products table has photo, title, message, price, id.
>>
>> products table has title, price, category, image_url, and id.
>
> Would it be possible to combine the two tables (so that the user
> products and products are in the same table)?  Either using STI or
> maybe just have some way of knowing what sort each product is.  Then
> from the point of view of your cart life would be easy.
>
> Colin

thanks colin, i was trying to think about this already but not sure 
really what way to do it. im new to all this. i need the two separate 
controllers for the tables because i want users to be able to use the 
new/user_products path creating their own products, while on the 
products controller the new path is not visible to users. i prob also 
need to add user_id to the user_products table. im not sure how to 
combine the tables. im tryna fins stuff on net on STI but im not really 
understanding it too well.

-- 
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