Permalink
Browse files

now for some delicious debugging

  • Loading branch information...
1 parent b524f9b commit ad5cc792b6ef88e69779741b7f48aa00c53b8d93 Natalia Buckley committed Apr 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/controllers/listener_controller.rb
@@ -6,11 +6,11 @@ def receive_email
# do i need this? *scratches head*
@params = params
- sent_to = params["to"].split('@')
- message_id = sent_to[0].split('.')[0]
+ puts sent_to = params["to"].split('@')
+ puts message_id = sent_to[0].split('.')[0]
email_message = EmailMessage.find_by_message_id(message_id)
- person = email_message.person
- project = email_message.project
+ puts person = email_message.person
+ puts project = email_message.project
@update = Update.new(:body => params["text"], :email_message_id => email_message.id, :person_id => person.id, :project_id => project.id)
respond_to do |format|

0 comments on commit ad5cc79

Please sign in to comment.