Hi Guys. Im new to Rails, after developing in Java for about the last 4 years, because I want to develop better web based apps and find Ruby would be better for this. Basically im learning as I'm going and what I want to be able to do is:
Say I have created a 'user' model (storing a id, name and email), a 'society' model (imagine club/societies at a school so it would have a society's name and code) and another model joining every user to a club (i.e. user.id = society.id) all stored in a database. How would I, given a society's id, generate an array of all the names and email address of users belonging to it to then send an email on to each? If you could help me solve this basic problem it would be fantastic as I know seeing the code on how it is done will give me a resource do many of the things I want to be able to do. -- 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 [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.

