I\'m having a difficult time understanding how to do this. I have two models, a project, and a course.
#project.rb belongs_to :course attr_accessible :course_id,
I used gem 'dynamic_form'. faculty_list(id, faculty_name) table contains names of faculties.
<%= f.select :faculty, options_from_collection_for_select(@faculty_list, 'id', 'faculty_name', @faculty.faculty.to_i) %>