search for: send_notifications

Displaying 8 results from an estimated 8 matches for "send_notifications".

Did you mean: send_notification
2008 May 28
3
Mocking objects to test Rails Controllers
Hi all, I''m currently considering the use of Mocha to aid in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) #
2007 Dec 13
1
session.send_notification for emails
Hey All, I am wondering if anyone has done any work around sending emails through the API. It looks like facebooker is using part of a deprecated API, Notifications.send used to take an email part. They now have a Notifications.sendEmail call which will take recipients, subject, text part and fbml part. Looking at the code it seems like I need to add a method to the session
2011 May 11
3
Constructing an array of stuff (to send multiple apple push notifications)
...3abc456def'' n1 = [device_token, :aps => { :alert => ''Hello...'', :badge => 1, :sound => ''default'' } n2 = [device_token, :aps => { :alert => ''... iPhone!'', :badge => 1, :sound => ''default'' }] APNS.send_notifications([n1, n2]) ##### for me it''s slightly different, I wish to loop through each device in my db and then send the same message to them all...it''s something like this but it''s clearly not quite right... can''t get the :aps => thing to work out. I think I need som...
2008 Jan 10
3
A best practices question
Hey everyone. I''ve got a best practices question. How are you guys rendering newsfeeds? We have a couple of apps where we send newsfeed items from a backend process. As such, we aren''t in the context of a controller and can''t use the rails template rendering. We''ve tried about 3 different ways to make that bearable, but aren''t having much
2009 Jan 22
0
time slider cleanup errors
I''m running OpenSolaris 10/08 snv_101b with the auto snapshot packages. I''m getting this error: /usr/lib/time-slider-cleanup -y Traceback (most recent call last): File "/usr/lib/time-slider-cleanup", line 10, in <module> main(abspath(__file__)) File "/usr/lib/../share/time-slider/lib/time_slider/cleanupmanager.py", line 363, in main
2007 May 24
3
Exception Notification Plugin Question
Hi, I have two questions re the Exception Notifier plugin (i.e. which you install via "ruby script/plugin install exception_notification") Q1 - In it''s current setup (where it uses /public/500.html) is it possible to remove the "Status: 500 Internal Server Error Content-Type: text/html" text which seems to mysteriously get place at the top of the page? Q2 -
2008 Jan 24
1
New Batch API method
Anyone started implementing the new Batch api method? BJ ----- BJ Clark the science department bjclark at scidept.com www.scidept.com
2007 Sep 22
1
Howto customize deployment with capistrano2
My deployment requires a few extra steps after ''update_code'' and then again after ''symlink''. Until I migrated to capistrano2, I had my own deploy_with_migration task which added these steps. What would be a recommended approach to accomplish the same using capistrano2? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ You received this