search for: applicationuser

Displaying 1 result from an estimated 1 matches for "applicationuser".

Did you mean: application_user
2006 Apr 19
2
Beginner problem with foreign keys
...er_types. In my application_users table I have a field named "user_type_id". At first, I thought if I set up the foreign key with the correct names, it would automatically appear in my "new" form, but I got past that issue. My application_user model looks like this: class ApplicationUser < ActiveRecord::Base belongs_to :user_type validates_presence_of :first_name, :last_name, :user_type_id, :login_name, :password end My user_type model looks like this: class UserType < ActiveRecord::Base has_many :application_users end In my controller, my new meth...