hi,
maybe the rails pros here can help me with the software design of a contact management web app.
i want to create Groups, where I can add Contacts to. I thought I generate a Group scaffold and a Contact scaffold with
group:references
Then I the models to
Group: has_many :contacts
Contact: belongs_to :group
I also set the routes to
resources :groups do
resources :contacts
end
The whole thing should then be accessible over the groups controller, the contact views get included as partials.
Is that the right way? Or would you do it another way?
Thanks + regards