send page start
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user