sms-pager/app/controllers/children_controller.rb

7 lines
155 B
Ruby

class ChildrenController < ApplicationController
def index
@children = Child.all.order(:last_name, :first_name)
respond_with @children
end
end