SMS_Fu

There is a great new Ruby on Rails plugin that I found over at Rails Lodge called SMS_fu created by Brendan Lim. SMS_Fu allows you to send text messages to cell phone by providing a phone number, service provider and message.I think this plugin could be quite useful for a few projects that I am working on. Anyway I found that the install didn't work quite right so here are the instructions on how to fix them.

  1. Install plugin - ruby script/plugin install http://sms-fu.googlecode.com/svn/trunk/sms_fu
  2. Move sms_fu.rb & sms_notifier.rb from vendor/plugins/sms_fu/lib to the lib folder
  3. Move sms_fu_tasks.rake from vendor/plugins/sms_fu/tasks to lib/tasks
  4. Move the folder sms_notifier from plugins/sms_fu/views to the app/views folder
  5. Update sms_fu.yml with a response address - note this file does install correctly with the install of the plugin
  6. Open sms_notifier.rb in the lib folder. Change "#{File.dirname(__FILE__)}/../views" to "#{File.dirname(__FILE__)}/../app/views" in def template_root.
  7. Make sure you have the ActionMailer setup
  8. Add "include SMSFu" to your controller
  9. Modify sms_fu.yml in your config folder with your reply-to e-mail address. (This file does install correctly)
  10. Put this code in to an action in your controller, "deliver_sms("5558675309","AT&T","your message here")". Change Tommy Two Tones phone number to yours, the service provider to the correct one and the message to what you want.

That is it, this plugin works great and I thank Brendan for sharing it.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.