Thanks alot, in that case i'd like to ask the following question (since after some tutorials it's still unclear to me)
I've got card_id = 1 and user_id = 1 in my DB now. In my user.rb i've got the has_and_belongs_to_many:cards and in cards i've got has_and_belongs_to_many:users. However, if i get all cards (@cards = Cards.all) and loop through them i don't have a user_id in my loop. So what i'm actually trying to ask is, how do i get all cards that belong to user 1? -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.