2009/7/25 Glex <[email protected]>: > > On Jul 25, 9:21 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- > s.net> wrote: >> Gleb M. wrote: >> > A Song :has and belongs to many Playlists. >> > I want to store additional information about a song in a given >> > playlist >> >> Then you'll need has_many :through. HABTM doesn't deal with extra >> fields in the join table. >> >> Best, >> -- >> Marnen Laibow-Koserhttp://www.marnen.org >> [email protected] >> -- >> Posted viahttp://www.ruby-forum.com/. > > How would I do this? I am new to Rails. > :has_one request_count :through => "what do i put here? where do I > store it?" >
Have a look at the rails guides at http://guides.rubyonrails.org/ particularly the one on ActiveRecord Associations (assuming you have already looked at the Getting Started one). Google will provide lots of help too. Colin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

