search for: application_user_user_type_id

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

2006 Apr 19
2
Beginner problem with foreign keys
...ctiveRecord::Base has_many :application_users end In my controller, my new method looks like this: def new @application_user = ApplicationUser.new @user_types = UserType.find_all end And I modified the new.rhtml view to contain this select list: <p><label for="application_user_user_type_id">User type</label><br/> <select name="application_user[user_type_id]"> <% @user_types.each do |user_type| %> <option value="<%= user_type.id %>"> <%= user_type.user_type %> </option> <% end %> </select>...