Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aantix/cat_factz
Browse files Browse the repository at this point in the history
  • Loading branch information
aantix committed May 6, 2012
2 parents d9de8a3 + 92ae4c2 commit 4d7df86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/transmit_cat_facts_controller.rb
@@ -1,8 +1,9 @@
class TransmitCatFactsController < ApplicationController
skip_before_filter :verify_authenticity_token, :only => :incoming

def received_message
TransmitCatFact.create!(:phonenumber => params[:phonenumber],
:message => param[:message],
def incoming
TransmitCatFact.create!(:phonenumber => params["From"],
:message => params['Body'],
:sentreceived => 'received')
end

Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
@@ -1,6 +1,7 @@
CatFactz::Application.routes.draw do
resources :welcomes
resources :transmit_cat_facts
match "/incoming", :to => 'transmit_cat_facts#incoming'

# The priority is based upon order of creation:
# first created -> highest priority.
Expand Down

0 comments on commit 4d7df86

Please sign in to comment.