Skip to content

Instantly share code, notes, and snippets.

View nkotbpartyomg's full-sized avatar

Kathy Heffern nkotbpartyomg

View GitHub Profile
@nkotbpartyomg
nkotbpartyomg / gist:32e2a485530e2f83046a
Created January 8, 2015 19:34
Replies controller for teacher/parent texting app
class RepliesController < ApplicationController
require "time"
skip_before_filter :verify_authenticity_token
skip_before_filter :authenticate_teacher!
def receive
# 1. set a @parent based on phone number and/or course number if they exist
# 2/ you then move on to the next state on the parent
@reply = Reply.new