2015-09-12 15:37:05 -05:00
|
|
|
class ParentsController < ApplicationController
|
|
|
|
def index
|
|
|
|
@parents = Person.just_parents
|
|
|
|
respond_with @parents
|
|
|
|
end
|
2015-09-24 22:00:26 -05:00
|
|
|
|
|
|
|
def show
|
|
|
|
@parent = Person.just_parents.where(id: params[:id])
|
|
|
|
end
|
|
|
|
|
|
|
|
def new
|
|
|
|
end
|
|
|
|
|
|
|
|
def add
|
|
|
|
ap params
|
|
|
|
redirect_to list_parents_path
|
|
|
|
end
|
2015-09-12 15:37:05 -05:00
|
|
|
end
|