Creating a list based on a foreign relation
I've been looking around for an answer to this, and though i've found one it seems like I'm repeating myself. Here's the problem: I'm making a simple user registration page, and one of the options on it is gender (male/female/no comment) which is stored in another table, basic foreign key and such. I'd like to display this as 3 radio buttons. Is there a way to access what's in the Gender table from User model in this case? I suppose i could make a new self.genders fxn in the User model that gets everything in the foreign table but I wasn't sure if it could be handled already in rails. Any suggestions on this kind of thing?