2015-09-12 15:37:05 -05:00
|
|
|
class PagesController < ApplicationController
|
2015-09-20 13:26:45 -05:00
|
|
|
def index
|
|
|
|
@pages = Page.last_ten
|
|
|
|
respond_with @pages
|
|
|
|
end
|
|
|
|
|
2015-09-20 22:30:44 -05:00
|
|
|
def page
|
|
|
|
@page = Page.new
|
|
|
|
person = Person.find(params[:id])
|
|
|
|
@people = Person.pageable
|
|
|
|
|
|
|
|
return if person.nil?
|
|
|
|
@page.person_id = person.id
|
|
|
|
@page.to = person.phone
|
|
|
|
end
|
2015-09-20 13:26:45 -05:00
|
|
|
|
|
|
|
def send_page
|
|
|
|
end
|
2015-09-12 15:37:05 -05:00
|
|
|
end
|