I’m developing an application in Rails 3. In the application, users are allowed to send e-mails using their existing email account settings. What’s the best approach to define per user settings for every user’s credentials?
Regards,
Liviu
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given you’d probably want to offer the option for users to change/update their settings, they should go in a model. After that, it comes down to taste…
If you have only a few settings, you could store them directly in the User model. If you have lots of settings, you could have a separate UserProfile model that
belongs_toUser.