I am trying to create a search engine that will save an item of a user into a line item. When the user searches inside his home page(localhost/user/3) each item displayed in the search has a button link to add to the line item how do i tell the item to add the product_id to the user_id in the line item?? {{code}} line_item belongs_to :user_id(foreign key) belongs_to :product_id(foreign 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---