2015-09-18 15:50:52 -05:00
|
|
|
%h1 Parents
|
|
|
|
|
|
|
|
- @parents.each do |parent|
|
|
|
|
%ul
|
2015-10-03 19:16:46 -05:00
|
|
|
%li= link_to parent.name, parent_path(parent)
|
2015-10-03 08:04:16 -05:00
|
|
|
%li
|
2015-10-03 19:16:46 -05:00
|
|
|
= number_to_phone parent.phone
|
2015-10-03 08:04:16 -05:00
|
|
|
= page_link(parent)
|
2015-10-03 19:16:46 -05:00
|
|
|
%li= mail_to parent.email, nil, encode: 'hex'
|
2015-09-18 15:50:52 -05:00
|
|
|
%li Children:
|
|
|
|
%ul
|
|
|
|
- parent.children.each do |child|
|
2015-10-03 19:16:46 -05:00
|
|
|
%li= link_to child.name, child_path(child)
|