send page start

This commit is contained in:
2015-09-20 22:30:44 -05:00
parent 692446b97b
commit c425f63ee9
13 changed files with 117 additions and 41 deletions

View File

@ -4,4 +4,10 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
respond_to :html, :json
def current_user
# temp
Person.new(id: 9999)
end
helper_method :current_user
end

View File

@ -4,7 +4,15 @@ class PagesController < ApplicationController
respond_with @pages
end
def page; end
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
def send_page
end