if account have many user and user belongs_to account then this accepts_nested_attributes_for is write in account model. for more detail..see my github account https://github.com/vishalsingh/multiple_upload_photo .download it.hope this will work for you.
On Sun, Mar 4, 2012 at 10:55 PM, Mohamad El-Husseini <[email protected] > wrote: > I'm a bit unsure how to model a relationship in ActiveRecord. It's a "has > many through" with nested attributes. I already asked on SO but no luck so > far. I would appreciate it if you could have a look and point me in the > right direction. Feel to answer here or there! The question is here: > http://stackoverflow.com/questions/9555888/what-active-record-association-do-i-use-in-this-scenario > > I won't repeat myself, as the question does a good job of explaining, but > I want to create users through accounts, and model the relationship through > a relationship table. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/QLs5TaQp1DoJ. > 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. > > -- 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.

