class ParentsController < ApplicationController def index @parents = Person.just_parents respond_with @parents end def show @parent = Person.just_parents.where(id: params[:id]) end def new end def add ap params redirect_to list_parents_path end end