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