I’m building Rails application and I want to have user registration/login functionality. I also need to have other fields in the User’s model such address(street, city, country), facebook info, twitter info, last login time…etc
From a design perspective, is it better to have the User model very light-weight and have just username/password/email info and leave the other fields for separate model such as “profile”, or is it better to combine those things together?
I care mostly about performance.
Thanks,
Tam
I would say put them together. I think you would just be creating more work for yourself without a gain significant enough to justify it if you split up the info like that.
Authlogic is probably the nicest plugin for dealing with authentication if you are looking for one. It recognizes some of the fields you are interested in (like last login etc) and fills in automagically. A list is on their site.