RailsCasts Pro episodes are now free!

Learn more or hide this

MiggyQuest's Profile

GitHub User: miggynascimento

Comments by MiggyQuest

Avatar

when you're generating your models, don't forget to add the reference id of the parent model. aka:

class Task < ActiveRecord::Base
belongs_to :project
attr_accessible :description, :done, :project_id
end