I am developing a social network/wiki website for a personal - TopicsExpress



          

I am developing a social network/wiki website for a personal project and would like to ask how I can go about adding IDs from 2 models in a joining model and referring to them. I am very new to rails and still adopting the ActiveRecord concepts. I have the following models: user: has_many :educations course: has_many :educations university: has_many :educations education: belongs_to :user, :course, :university My idea behind this structure is to store details of the single qualification in the education model, which will also have fields of its own. So, after logging in, I want the user to go through a workflow where they select a university and a course and that is displayed on their profile. I know how to display all courses and universities, but my question is how do i store the details in the education model and refer to them for displaying in the profile page.
Posted on: Wed, 12 Mar 2014 12:01:48 +0000

Trending Topics



Recently Viewed Topics




© 2015