i try to implement a Profile System for the users into my Rails App.
i want to implement it with these models:
class Profile < ActiveRecord::Base
has_many :users, :through => :Profileships
GehÃ¶rt zu einer Profil Gruppe
class Profileship < ActiveRecord::Base
class ProfileGroup < ActiveRecord::Base
Eine Profil Gruppe hat mehrere Profile
So a user can edit his Profile informations of a Profile group, stored
in the Profileship Database(there is a value fieldin the Profileship
Do you think this is a good solution, or should i manage the Profile
informations in one model and avoid the :has_many_through thing?
How should i handle the views, because i think i have to setup a view
for every Profilegroup, because i cant build them dynamical, because i
can’t figure out if a information needs a input or a textare or … .