scss org and parenthood adding

This commit is contained in:
2015-10-03 15:15:19 -05:00
parent c1f872e9a1
commit 0510f1c4c2
19 changed files with 207 additions and 162 deletions

View File

@ -3,7 +3,10 @@ class RelationshipsController < ApplicationController
parent = Person.find(params[:parent])
child = Child.find(params[:child])
parent.parenthoods.create(child)
ap parent
ap child
parent.parenthoods.create(child_id: child.to_i)
redirect_to :back, notice: 'Child added to parent!'
end