Hello,
I have code like this
def items
my_items = self.items
if self.added_items
self.added_items.each do |ai|
my_items.push(as.item)
end
end
return my_items
end
the added items are a join table when you connect to other users
items. Then im trying to display the complied list. but when doing
this, it changes the user_id of the added item from the user that
created to the current_user.
not fully understanding why, or if there is a better way to handle
this.
any help would be greatly appreciated.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.